SSH to jump host, to final host, then tmux -
in ssh config, have
host jumphostnick hostname jumphost.com user username host finalhostnick user username proxycommand ssh jumphostnick nc finalhosturl 22 i supplement having run tmux attach -d when gets final host. possible?
use -w rather netcat:
host jumphostnick hostname jumphost.com user username host finalhostnick user username proxycommand ssh -w finalhosturl:22 jumphostnick if want run tmux attach -d, should add finalhostnick:
requesttty yes and connect using ssh finalhostnick -t tmux attach -d, or setup bash alias:
alias ssh-final='ssh finalhostnick -t tmux attach -d' in ~/.bashrc
Comments
Post a Comment