SSH Client (Linux): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
 
(5 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
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 15: Zeile 21:
</pre>
</pre>


=== Meldung: Pseudo-terminal will not be allocated because stdin is not a terminal. ===
=== 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:
Um diese Meldung wegzubekommen, muss man anstelle von "-t" die Option "-tt" verwenden:
Zeile 22: 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>
== Verbindungsprobleme ==
=== Unable to negotiate with 10.X.X.XXX port 22: no matching host key type found. Their offer: ssh-rsa ===
Auf dem Client die Datei
<pre>
sudo vi /etc/ssh/ssh_config
</pre>
bearbeiten und die Parameter
<pre>
HostKeyAlgorithms = +ssh-rsa
PubkeyAcceptedAlgorithms = +ssh-rsa
</pre>
hinzufügen.
== Links ==
[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]]

Aktuelle Version vom 23. August 2023, 19:34 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>"

Verbindungsprobleme

Unable to negotiate with 10.X.X.XXX port 22: no matching host key type found. Their offer: ssh-rsa

Auf dem Client die Datei

sudo vi /etc/ssh/ssh_config

bearbeiten und die Parameter

HostKeyAlgorithms = +ssh-rsa
PubkeyAcceptedAlgorithms = +ssh-rsa

hinzufügen.

Links

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

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


Zurück zu Ubuntu