ssh-connect Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)
Habe ich ein paar Tasten zu epadmin auf Maschine A. ich kopierte Sie auf Maschine B im home-Ordner von epadmin über scp
im Ordner .ssh
Befehl für den Zugriff : ssh [email protected]
[epadmin@3A1D .ssh]$ ls -la
total 24
drwxrwxr-x 2 epadmin epadmin 4096 May 12 14:41 .
drwx------ 6 epadmin epadmin 4096 May 12 14:40 ..
-rw-r--r-- 1 epadmin epadmin 438 May 12 14:41 config
-rw------- 1 epadmin epadmin 1671 May 12 14:41 id_rsa_auto_epmc
-rw-r--r-- 1 epadmin epadmin 407 May 12 14:41 id_rsa_auto_epmc.pub
-rw-r--r-- 1 epadmin epadmin 2818 May 12 14:41 known_hosts
Hier ist ein Stück von -vvv(Verbose) log
debug1: Next authentication method: publickey
debug1: Trying private key: /home/epadmin/.ssh/identity
debug3: no such identity: /home/epadmin/.ssh/identity
debug1: Trying private key: /home/epadmin/.ssh/id_rsa
debug3: no such identity: /home/epadmin/.ssh/id_rsa
debug1: Trying private key: /home/epadmin/.ssh/id_dsa
debug3: no such identity: /home/epadmin/.ssh/id_dsa
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
debug1: read_passphrase: can't open /dev/tty: No such device or address
debug3: packet_send2: adding 64 (len 52 padlen 12 extra_pad 64)
Ich kann mich nicht einloggen ohne Passwort
Stück sshd_config. Ich habe versucht, zu kommentieren RSAAut und fügen Sie keine Passwort-auth. Es wurden keine änderungen
# Authentication:
#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile .ssh/authorized_keys
#AuthorizedKeysCommand none
#AuthorizedKeysCommandRunAs nobody
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
PasswordAuthentication yes
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
ChallengeResponseAuthentication no
Du musst angemeldet sein, um einen Kommentar abzugeben.
Ihre Frage sein sollte, auf server Schuld. Es ist eine grundlegende Schwierigkeiten oder ich sollte sagen zwei :
Keine änderungen erforderlich ist, um Standard sshd_config-Datei für die key-Authentifizierung.
Für deine Frage, es sollte besser sein, um den ssh-Befehlszeile, die Sie verwenden.
Lösung im terminal für Fehler
xx - ip-host
① Eins Ihrer dir .ssh sollte 0700 und der .ssh dir und seinem Sohn-Dokumente-Autor und-Gruppe ist dein
②the authorized_keys sollte 0644 0600 oder
③maybe kopieren Sie den öffentlichen authorkey Inhalte in authorized_keys nicht laufen, nun können Sie versuchen, kopieren Sie die authorkey, um den remote-host, den dir .ssh und authorized_keys umbenennen , ja Sie können es versuchen! schlechten Englisch meine laufen