I used nc to do just this for years until I switched companies and found that many of the hosts didn't have nc installed.
To get around that I just added the following to my bashrc
alias remote_host="ssh -t bastion ssh -t host1 ssh host2"
To get around that I just added the following to my bashrc
alias remote_host="ssh -t bastion ssh -t host1 ssh host2"
No comments yet.