ssh config跳转服务器
程序员文章站
2024-03-21 18:54:16
...
host my-host
user root
hostname 101.101.101.101
port 22
identityfile /home/root/.ssh/id_rsa
Host 192.168.1.*
User root
Port 22
ProxyCommand ssh -W %h:%p my-host
identityfile /home/root/.ssh/id_rsa