ssh-copy-id 复制公钥

    1. ssh-copy-id -i 公钥 username@remote-server

    VSCode Remote ssh跳板机配置

    1. Host JumpMachine
    2. # 跳板机的ip地址
    3. HostName A
    4. # 你跳板机的用户名
    5. User username
    6. # 跳板机登录端口
    7. Port 22
    8. Host TargetMachine
    9. # 目标机的ip地址
    10. HostName B
    11. # 你目标机的用户名
    12. User username
    13. # 目标机登录端口
    14. Port 8080
    15. ProxyCommand "openssh的安装路径"\ssh.exe -W %h:%p JumpMachine
    16. # example