Remote Access/Single Command: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
imported>Burghardt (Die Seite wurde neu angelegt: „If you know the final destination you can combine two sequential ssh commands into one single command by simple put them together in one line. The only required "…“) |
imported>Burghardt |
||
Zeile 1: | Zeile 1: | ||
If you know the final destination you can combine two sequential ssh commands into one single command by simple put them together in one line. The only required "trick" is the <tt>-t</tt> parameter. Without this the second hop "hangs" around without a connected <tt>tty</tt>-Terminal - no output/input is possible even though the connection is established. |
If you know the final destination you can combine two sequential ssh commands into one single command by simple put them together in one line. The only required "trick" is the <tt>-t</tt> parameter. Without this the second hop "hangs" around without a connected <tt>tty</tt>-Terminal - no output/input is possible even though the connection is established. |
||
− | The following is possible with both [[PuTTY]] and "classic" command line <tt>ssh</tt>. |
||
− | |||
Verbatim terminal copy-n-paste (just eliminated some text): |
Verbatim terminal copy-n-paste (just eliminated some text): |
||
'''~$ ssh -t gtest2@login.stud ssh -t c034.cip.loc ''' |
'''~$ ssh -t gtest2@login.stud ssh -t c034.cip.loc ''' |
||
Zeile 18: | Zeile 16: | ||
gtest2@c034:~$ |
gtest2@c034:~$ |
||
+ | Exactly the same is possible with [[PuTTY]] - you just have to define a specific command in the configuration dialog. |
||
Version vom 25. November 2015, 16:26 Uhr
If you know the final destination you can combine two sequential ssh commands into one single command by simple put them together in one line. The only required "trick" is the -t parameter. Without this the second hop "hangs" around without a connected tty-Terminal - no output/input is possible even though the connection is established.
Verbatim terminal copy-n-paste (just eliminated some text):
~$ ssh -t gtest2@login.stud ssh -t c034.cip.loc ####### ####### login.stud.informatik.uni-goettingen.de ... ## Bitte auf einem der c0xx PC 'weiterhangeln' um zu arbeiten. ## ####### gtest2@login.stud's password: Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-68-generic x86_64) * Documentation: https://help.ubuntu.com/ Last login: Wed Nov 25 16:07:41 2015 from login.cip.loc gtest2@c034:~$
Exactly the same is possible with PuTTY - you just have to define a specific command in the configuration dialog.