Skip to content

Ssh and scp through intermediate host

wordpress meta

title: 'Ssh and Scp through intermediate host'
date: '2012-12-12T21:39:33-06:00'
status: publish
permalink: /ssh-and-scp-through-intermediate-host
author: admin
excerpt: ''
type: post
id: 168
category:
    - Linux
    - SSH
tag: []
post_format: []

Quick way to use ssh / scp through an intermediate host.

~$ cat .ssh/config
Host rrhome
User    rrosso
HostName x.x.x.x
ProxyCommand    ssh rrosso@dmzhostname nc %h %p 2> /dev/null

~$ scp rrhome:/ts/hdpvrgrab/output.ts ./