나는 모든 일을 제대로 한 것 같아요. 공개/개인 키, 파일 권한 등
3개의 기계가 있습니다:
- 우분투
- old_synology
- new_synology
- 비밀번호 없이 ubuntu, ssh에서 old_synology로 시작합니다. 효과가있다.
- 비밀번호 없이 old_synology에서 new_synology로 SSH를 통해 접속합니다. 효과가있다.
- ubuntu에서 new_synology로 ssh를 시도했는데 실패했습니다.
Connection from ubuntu port 41568 on new_synology port 1234
debug1: Client protocol version 2.0; client software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: match: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 pat OpenSSH* compat 0x04000000
debug1: Local version string SSH-2.0-OpenSSH_7.4
debug1: Enabling compatibility mode for protocol 2.0
debug1: permanently_set_uid: 1024/100 [preauth]
debug1: ssh_sandbox_child: prctl(PR_SET_SECCOMP): Invalid argument [preauth]
debug1: list_hostkey_types: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519 [preauth]
debug1: SSH2_MSG_KEXINIT sent [preauth]
debug1: SSH2_MSG_KEXINIT received [preauth]
debug1: kex: algorithm: curve25519-sha256 [preauth]
debug1: kex: host key algorithm: ecdsa-sha2-nistp256 [preauth]
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none [preauth]
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none [preauth]
debug1: expecting SSH2_MSG_KEX_ECDH_INIT [preauth]
debug1: rekey after 134217728 blocks [preauth]
debug1: SSH2_MSG_NEWKEYS sent [preauth]
debug1: expecting SSH2_MSG_NEWKEYS [preauth]
debug1: SSH2_MSG_NEWKEYS received [preauth]
debug1: rekey after 134217728 blocks [preauth]
debug1: KEX done [preauth]
debug1: userauth-request for user admin service ssh-connection method none [preauth]
debug1: attempt 0 failures 0 [preauth]
debug1: get user realname admin => admin
debug1: user admin matched 'User admin' at line 124
debug1: PAM: initializing for "admin"
debug1: PAM: setting PAM_RHOST to "ubuntu"
debug1: PAM: setting PAM_TTY to "ssh"
debug1: userauth-request for user admin service ssh-connection method publickey [preauth]
debug1: attempt 1 failures 0 [preauth]
debug1: userauth_pubkey: test whether pkalg/pkblob are acceptable for RSA SHA256:*** [preauth]
debug1: temporarily_use_uid: 1024/100 (e=0/0)
debug1: trying public key file /var/services/homes/admin/.ssh/authorized_keys
debug1: fd 4 clearing O_NONBLOCK
debug1: restore_uid: 0/0
Failed publickey for admin from ubuntu port 41568 ssh2: RSA SHA256:***
확실한 점검사항:
- old_synology에 로그인할 수 있으므로 우분투의 공개/개인 키가 유효합니다.
- new_synology의 .ssh/* 파일 권한은 old_synology에서 로그인할 수 있기 때문에 정확합니다.
- 우분투의 공개 키는 두 synology의authorized_keys 파일에서 동일합니다.
어떤 아이디어가 있나요?