SSHFS가 SSH 키를 인식했지만 여전히 비밀번호를 묻습니다.

SSHFS가 SSH 키를 인식했지만 여전히 비밀번호를 묻습니다.

sshfs와 autofs를 사용하는 데 아무런 문제가 없었고 서버가 제대로 작동하고 있었습니다.

백업 서버를 실제 서버에 드라이브로 마운트하려고 합니다.

그런데 갑자기 더 이상 백업 드라이브가 마운트되지 않는 것을 발견했습니다.

다음 명령을 실행할 때 얻은 로그는 다음과 같습니다.

sshfs -o debug,sshfs_debug,loglevel=debug,IdentityFile=~/.ssh/id_rsa [email protected]:/ /storage_box/backup


debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to myBackupServer.com [*****:3000::85] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.4p1 Debian-10+deb9u1
debug1: Remote protocol version 2.0, remote software version mod_sftp
debug1: no match: mod_sftp
debug1: Authenticating to myBackupServer.com:22 as 'user'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: ecdh-sha2-nistp256
debug1: kex: host key algorithm: ssh-rsa
debug1: kex: server->client cipher: aes128-ctr MAC: [email protected] compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: [email protected] compression: none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ssh-rsa SHA256:*************
debug1: Host 'myBackupServer.com' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:2
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /root/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: password

이 줄은 서버가 내 id_rsa를 수락했다고 말합니다.

Server accepts key: pkalg ssh-rsa blen 279

왜 아직도 비밀번호를 요구하나요?

관련 정보