Server A | Server B | Server C |
---|---|---|
My PC | Server with Public IP | Server in Private Network |
Connect to C from A: A ---> C
In C: ssh -i keyC -R 2222:localhost:22 userB@userB
In A: ssh -tt -i keyA userB@hostB "ssh -tt -i keyB -p 2222 userC@localhost
Server A | Server B | Server C |
---|---|---|
My PC | Server with Public IP | Server in Private Network |
Connect to C from A: A ---> C
In C: ssh -i keyC -R 2222:localhost:22 userB@userB
In A: ssh -tt -i keyA userB@hostB "ssh -tt -i keyB -p 2222 userC@localhost