ssh-copy-id root@HOSTNAME root@HOSTNAME's password: Now try logging into the machine, with "ssh 'root@HOSTNAME'", and check in: ~/.ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting.
um den SSH-Public-Key auf den Server HOSTNAME zu kopieren.
ssh-keygen -R HOSTNAME
um den SSH-Key des Hosts HOSTNAME aus ~/.ssh/known_hosts zu löschen.
In ~/.ssh/config können vorgaben für Verbindungs-Einstellungen mit SSH konfiguriert werden:
#$Id: config,v 1.4 2014/06/18 17:39:53 haasc Exp $
# man ssh_config fuer Optionen
# Systemweite-Config: /etc/ssh/ssh_config
Host 172.16.1.1
User haasc
ForwardX11 yes
ForwardAgent yes
Host doku.haas-online.org
User admin
Host *
User root
ForwardX11 yes
ForwardAgent yes
Im obigen Beispiel wird - sofern in der Kommandozeile nichts abweichendes angegeben wird! - für den Host
← zurück