多段ssh

.ssh/config

Host host2
      ProxyCommand ssh host1 nc %h %p

 host1, host2の部分で、host1に踏み台の名前を、host2にアクセスしたいサーバーの名前を書く

サルでも分かる多段ssh - 射撃しつつ前転 改