首页 > 其他分享 >ssh config 跳板机可以直接跳过

ssh config 跳板机可以直接跳过

时间:2023-01-16 09:00:21浏览次数:47  
标签:IdentityFile config GATEWAY ProxyCommand ssh 跳过 gateway USER

核心 ProxyCommand
Host gateway
    HostName $GATEWAY_HOST
    Port $GATEWAY_PORT
    IdentityFile ~/.ssh/id_rsa
    User $GATEWAY_USER

Host target
    HostName $TARGET_HOST
    User $TARGET_USER
    IdentityFile ~/.ssh/id_rsa
    ProxyCommand ssh gateway nc %h %p 2> /dev/null # 或者 ProxyCommand ssh gateway -W %h:%p

标签:IdentityFile,config,GATEWAY,ProxyCommand,ssh,跳过,gateway,USER
From: https://www.cnblogs.com/guanchaoguo/p/17054664.html

相关文章