SSH Client (Linux): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
== Installation ==
<pre>
sudo apt-get install openssh-client
</pre>
== Kommandos remote per SSH ausführen ==
== Kommandos remote per SSH ausführen ==


Zeile 24: Zeile 30:
ssh <servername> -p <port> -l <username> -i /home/<username>/.ssh/id_rsa -tt "<remote-command>"
ssh <servername> -p <port> -l <username> -i /home/<username>/.ssh/id_rsa -tt "<remote-command>"
</pre>
</pre>
=== Links ===
[ https://www.debian.org/doc//manuals/debian-handbook/sect.remote-login.de.html https://www.debian.org/doc//manuals/debian-handbook/sect.remote-login.de.html]


== Links ==
== Links ==


[https://wiki.ubuntuusers.de/SSH/ https://wiki.ubuntuusers.de/SSH/]
[https://wiki.ubuntuusers.de/SSH/ https://wiki.ubuntuusers.de/SSH/]
[https://www.debian.org/doc//manuals/debian-handbook/sect.remote-login.de.html https://www.debian.org/doc//manuals/debian-handbook/sect.remote-login.de.html]




Zurück zu [[Ubuntu#S (Client)|Ubuntu]]
Zurück zu [[Ubuntu#S (Client)|Ubuntu]]

Version vom 4. Juli 2020, 15:55 Uhr

Installation

sudo apt-get install openssh-client

Kommandos remote per SSH ausführen

ssh <servername> -p <port> -l <username> -t "<remote-command>"

Ohne Passworteingabe

Dazu benötigt man einen Schlüssel - zum Erstellen siehe SSH per Key.

Das Schlüssel wird mit der Option "-i" mit angegeben:

ssh <servername> -p <port> -l <username> -i /home/<username>/.ssh/id_rsa -t "<remote-command>"

Probleme

Pseudo-terminal will not be allocated because stdin is not a terminal.

Um diese Meldung wegzubekommen, muss man anstelle von "-t" die Option "-tt" verwenden:

ssh <servername> -p <port> -l <username> -i /home/<username>/.ssh/id_rsa -tt "<remote-command>"

Links

https://wiki.ubuntuusers.de/SSH/

https://www.debian.org/doc//manuals/debian-handbook/sect.remote-login.de.html


Zurück zu Ubuntu