linux - How to ssh into another machine immediately after logging into a machine -


problem: location i'm working cannot ssh master node application, 10.30.30.1 hosted country. solve this, have jump box can ssh location 10.50.50.1

and after logging jump box, again run command ssh 10.30.30.1

is there way save me step of first logging jump box , ssh master node, because that's thing use jump box for.

can configure jump box directly run ssh command moment log in? there commands allow me login directly master via jump box in single command or putty / moba xterm configuration?

say first execute ssh server1, on server1, execute ssh server2. thing want when execute ssh server1 on local computer, can automatically login server2.

the way add script runs automatically when login server1. can adding code ssh server2 ~/.bashrc file (if using ubuntu. or in other os, file name similar ~/.bashxxx).

but after doing so, still need type password server2 every time login server1. if don't want type server2's password hand, can use password-free ssh connection server1 server2. see this page find out how.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -