У меня есть две машины на той же беспроводной LAN. Я могу ssh от machineA до machineB, но не наоборот. Ошибка:
fred@ms-Precision-5510:~$ ssh 192.168.1.245
The authenticity of host '192.168.1.245 (192.168.1.245)' can't be established.
ECDSA key fingerprint is 51:29:ce:63:64:31:4c:d2:de:d1:fe:12:a6:76:08:33.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.245' (ECDSA) to the list of known hosts.
Permission denied (publickey).
fred@ms-Precision-5510:~$
(Вышеупомянутое от нового 'fred' учетной записи проверочного пользователя, который я создал только, чтобы быть уверенным, что вопрос не был характерен для моей собственной учетной записи. 192.168.1.245 machineA. 'fred' пользователь может ssh от machineA до machineB.)
/etc/ssh/ssh_config идентично между этими двумя машинами. Я попытался удалить ~/.ssh на обеих машинах без успеха. Я также попытался выполнить с-o "пароль PreferredAuthentications" на командной строке с ssh, снова без успеха. Я попытался перезагрузить. Это всегда - та же ошибка: Разрешение отклонено (открытый ключ).
Обратите внимание, что я могу проверить с помощью ping-запросов любую машину от другого.
Единственная реальная подсказка, которую я имею здесь, - то, что 1) это работало на прошлой неделе и 2) вызов ssh с-vvv приводит к следующему к концу расшифровки стенограммы отладки:
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/ms/.ssh/id_rsa ((nil)),
debug2: key: /home/ms/.ssh/id_dsa ((nil)),
debug2: key: /home/ms/.ssh/id_ecdsa ((nil)),
debug2: key: /home/ms/.ssh/id_ed25519 ((nil)),
debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/ms/.ssh/id_rsa
debug3: no such identity: /home/ms/.ssh/id_rsa: No such file or directory
debug1: Trying private key: /home/ms/.ssh/id_dsa
debug3: no such identity: /home/ms/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /home/ms/.ssh/id_ecdsa
debug3: no such identity: /home/ms/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /home/ms/.ssh/id_ed25519
debug3: no such identity: /home/ms/.ssh/id_ed25519: No such file or directory
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey).
Отметьте "Аутентификацию, которая может продолжить" строку. Когда я (успешно) ssh от machineA до machineB, та строка:
debug1: Authentications that can continue: publickey,password
Так, по-видимому, я так или иначе сказал machineA не принимать аутентификацию через пароль. Я не могу найти, где это, возможно, было сделано, все же.
Какие-либо идеи?