• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

踏み台ホストとターゲットホストで異なるユーザIDの場合に
ProxyCommandによる多段SSHをするための設定メモ。

.ssh/config

pre>>
Host targethost
ProxyCommand ssh -l gatewayuser gatewayhost nc %h %p
User targetuser
<<--

posted by genki genki on Sat 14 Aug 2010 at 00:08 with 0 comments