If we need to transfer files from the server A to the server C, but we need to jump through server B, since we don't have connectivity straight to C, we can use the setup below:
On server A, put the lines below in the file : .ssh/config:
# MYPROJ
Host C*
ProxyCommand ssh serverB nc -w 43200 %h 22 2> /dev/null
StrictHostKeyChecking=no
No comments:
Post a Comment