~.ssh/configを編集
1 2 3 4 5 6 7 8 9 10 |
Host host1 <span class="nb">hostname </span>humidai1 User root Port 443 Host host2 <span class="nb">hostname </span>testdomain.com Port 8080 User root ProxyCommand ssh <span class="nt">-CW</span> %h:%p host1 localForward 13389 192.168.0.1:3389 |
host2を指定してssh
1 |
<span class="nv">$ </span>ssh host2 |