当前位置 博文首页 > 专注机器学习之路:201117-MacOS上通过VsCode配置跳板机连接服务
Remote SSH: Tips and Tricks
# Jump box with public IP address
Host <HUST>
HostName <xxx.xxx.xxx.xxx>
User <user_name>
IdentityFile /Users/<user_name>/.ssh/id_rsa
# Target machine with private IP address
Host <Titan>
HostName <xx.xx.xx.xxx>
User <user_name>
IdentityFile /Users/<user_name>/.ssh/id_rsa
ProxyCommand ssh -q -W %h:%p <HUST>
cs