JumpServer
Local Jumpserver virtual node (develop/k3s)
________ _______ ________
╱ ╲ ╱ ╲╲ ╱ ╲
╱ ╱ ------ ╱ ╱╱ -------- ╱ ╱
╱ ╱ ╱ ╱ ╱ ╱
╲________╱ ╲________╱ ╲________╱
IP: 10.A.B.C IP: jumpserver.ay.dev IP: 192.168.100.xxx Modify SSH Config
30022has ssh service at jumpserver
cat .ssh/config
Host jumpserver
HostName jumpserver.ay.dev
Port 30022
User ay
IdentityFile ~/.ssh/id_rsa
Host virtual
HostName 192.168.100.xxx
Port 22
User ay
ProxyJump jumpserver
IdentityFile ~/.ssh/id_rsaAnd then you can directly connect to the virtual node
Forward port in virtual node
30022has ssh service at jumpserver
32524is a service which you wanna forward
ssh -o 'UserKnownHostsFile /dev/null' -o 'ServerAliveInterval=60' -L 32524:192.168.100.xxx:32524 -p 30022 ay@jumpserver.ay.dev