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

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -