欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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