linux:ssh
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| linux:ssh [2019/02/27 14:26] – Externe Bearbeitung 127.0.0.1 | linux:ssh [2019/09/16 19:57] (aktuell) – [lokal] move | ||
|---|---|---|---|
| Zeile 8: | Zeile 8: | ||
| > ssh USER@DOMAIN | > ssh USER@DOMAIN | ||
| + | |||
| + | ===== Erzwinge Passwort-Authentifikation ===== | ||
| + | < | ||
| + | ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no me@host | ||
| + | </ | ||
| ===== Removes all keys belonging to hostname from a known_hosts file. ===== | ===== Removes all keys belonging to hostname from a known_hosts file. ===== | ||
| Zeile 14: | Zeile 19: | ||
| < | < | ||
| - | ssh-keygen -f "/ | + | ssh-keygen -f "/ |
| </ | </ | ||
| + | |||
| + | ===== Keys für ein besteimmte IP entfernen ===== | ||
| + | < | ||
| + | Warning: the ECDSA host key for ' | ||
| + | Offending key for IP in / | ||
| + | Matching host key in / | ||
| + | Are you sure you want to continue connecting (yes/no)? | ||
| + | </ | ||
| + | |||
| + | Lösung: | ||
| + | < | ||
| + | ssh-keygen -R 116.203.XX.XXX | ||
| + | </ | ||
| + | |||
| ===== Tunnel (Remote Port-Forwarding) ===== | ===== Tunnel (Remote Port-Forwarding) ===== | ||
| - | ==== alesana | + | ==== Beispiel |
| - | > ssh -nNT -R \*: | + | > ssh -nNT -R \*: |
| ===== SSH ohne Passwort ===== | ===== SSH ohne Passwort ===== | ||
| Zeile 32: | Zeile 51: | ||
| **2. Übertragen auf remote-Server: | **2. Übertragen auf remote-Server: | ||
| - | > ssh-copy-id -i .ssh/ | + | > ssh-copy-id -i .ssh/ |
| ==== remote ==== | ==== remote ==== | ||
| Zeile 46: | Zeile 65: | ||
| ==== lokal ==== | ==== lokal ==== | ||
| - | > ssh -p 64000 singlespeedfahrer@fahrrad-wiki.org | + | > ssh -p 64000 me@example.com |
| ===== Fehlermeldungen ===== | ===== Fehlermeldungen ===== | ||
| Zeile 91: | Zeile 110: | ||
| //Von https:// | //Von https:// | ||
| + | |||
| + | ==== Fehler: sign_and_send_pubkey: | ||
| + | < | ||
| + | ssh me@host | ||
| + | |||
| + | sign_and_send_pubkey: | ||
| + | me@host: Permission denied (publickey). | ||
| + | </ | ||
| + | |||
| + | Lösung: | ||
| + | |||
| + | Problem liegt an gnome-keyring. | ||
| + | < | ||
| + | ssh-add ~/ | ||
| + | </ | ||
| ===== Siehe auch ===== | ===== Siehe auch ===== | ||
| * [[linux: | * [[linux: | ||
| * [[sftp als root auf Server ohne root-ssh-Login]] | * [[sftp als root auf Server ohne root-ssh-Login]] | ||
| + | * [[sshfs]] | ||
linux/ssh.1551277605.txt.gz · Zuletzt geändert: von 127.0.0.1
