当前位置 博文首页 > 专注机器学习之路:201117-MacOS上通过VsCode配置跳板机连接服务

    专注机器学习之路:201117-MacOS上通过VsCode配置跳板机连接服务

    作者:[db:作者] 时间:2021-09-21 11:53

    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