Я пытаюсь ssh на удаленный сервер, который использует Kerberos для аутентификации (хотя я не уверен, что это актуально). Запуск ssh -vvv hostname дает следующее:

debug1: Host 'hostname' is known and matches the RSA host key.
debug1: Found key in /home/foouser/.ssh/known_hosts:28
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/foouser/.ssh/id_rsa (0x7f598474f270),
debug2: key: /home/foouser/.ssh/id_dsa (0x7f598474f310),
debug2: key: /home/foouser/.ssh/id_ecdsa ((nil)),
debug2: key: /home/foouser/.ssh/id_ed25519 ((nil)),
debug1: Authentications that can continue: gssapi-with-mic
debug3: start over, passed a different list gssapi-with-mic
debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup gssapi-with-mic
debug3: remaining preferred: publickey,keyboard-interactive,password
debug3: authmethod_is_enabled gssapi-with-mic
debug1: Next authentication method: gssapi-with-mic
debug2: we sent a gssapi-with-mic packet, wait for reply
debug1: Delegating credentials
debug1: Authentications that can continue: gssapi-with-mic
debug2: we sent a gssapi-with-mic packet, wait for reply
debug1: Authentications that can continue: gssapi-with-mic
debug2: we sent a gssapi-with-mic packet, wait for reply
debug1: Authentications that can continue: gssapi-with-mic
debug2: we sent a gssapi-with-mic packet, wait for reply
debug1: Authentications that can continue: gssapi-with-mic
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (gssapi-with-mic).

Удивительно, но эта ошибка возникает примерно 9/10 раз, при этом каждая 1/10 попытка подключения была успешной.

Разрешения для моего каталога .ssh/ были установлены на 700.

Любое понимание того, как решить эту ошибку или почему это происходит только иногда?

0