SSH Client (Linux): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 24: Zeile 24:
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 ==

Version vom 4. Juli 2020, 15:53 Uhr

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://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

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


Zurück zu Ubuntu