Conoha VPSのCentOS Stream 8 のVPSで、一般ユーザーでの公開鍵認証ができません。
一般ユーザーで公開鍵認証を使用してSSHログインするを参考にしましたが、Permission denied (publickey,gssapi-keyex,gssapi-with-mic)と出てしまいます。
ちなみに、vオプションのログはこのようになっておりました。
powershell
1OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2 2debug3: Failed to open file:C:/Users/fufl/.ssh/config error:2 3debug3: Failed to open file:C:/ProgramData/ssh/ssh_config error:2 4debug2: resolve_canonicalize: hostname xxx.xx.xx.xxx is address 5debug2: ssh_connect_direct 6debug1: Connecting to xxx.xx.xx.xxx [xxx.xx.xx.xxx] port xx. 7debug1: Connection established. 8debug3: Failed to open file:C:/Users/fufl/.ssh/id_rsa.pub error:2 9debug1: identity file C:\Users\fufl/.ssh/id_rsa type -1 10debug3: Failed to open file:C:/Users/fufl/.ssh/id_rsa-cert error:2 11debug3: Failed to open file:C:/Users/fufl/.ssh/id_rsa-cert.pub error:2 12debug1: identity file C:\Users\fufl/.ssh/id_rsa-cert type -1 13debug3: Failed to open file:C:/Users/fufl/.ssh/id_dsa error:2 14debug3: Failed to open file:C:/Users/fufl/.ssh/id_dsa.pub error:2 15debug1: identity file C:\Users\fufl/.ssh/id_dsa type -1 16debug3: Failed to open file:C:/Users/fufl/.ssh/id_dsa-cert error:2 17debug3: Failed to open file:C:/Users/fufl/.ssh/id_dsa-cert.pub error:2 18debug1: identity file C:\Users\fufl/.ssh/id_dsa-cert type -1 19debug3: Failed to open file:C:/Users/fufl/.ssh/id_ecdsa error:2 20debug3: Failed to open file:C:/Users/fufl/.ssh/id_ecdsa.pub error:2 21debug1: identity file C:\Users\fufl/.ssh/id_ecdsa type -1 22debug3: Failed to open file:C:/Users/fufl/.ssh/id_ecdsa-cert error:2 23debug3: Failed to open file:C:/Users/fufl/.ssh/id_ecdsa-cert.pub error:2 24debug1: identity file C:\Users\fufl/.ssh/id_ecdsa-cert type -1 25debug3: Failed to open file:C:/Users/fufl/.ssh/id_ed25519 error:2 26debug3: Failed to open file:C:/Users/fufl/.ssh/id_ed25519.pub error:2 27debug1: identity file C:\Users\fufl/.ssh/id_ed25519 type -1 28debug3: Failed to open file:C:/Users/fufl/.ssh/id_ed25519-cert error:2 29debug3: Failed to open file:C:/Users/fufl/.ssh/id_ed25519-cert.pub error:2 30debug1: identity file C:\Users\fufl/.ssh/id_ed25519-cert type -1 31debug3: Failed to open file:C:/Users/fufl/.ssh/id_xmss error:2 32debug3: Failed to open file:C:/Users/fufl/.ssh/id_xmss.pub error:2 33debug1: identity file C:\Users\fufl/.ssh/id_xmss type -1 34debug3: Failed to open file:C:/Users/fufl/.ssh/id_xmss-cert error:2 35debug3: Failed to open file:C:/Users/fufl/.ssh/id_xmss-cert.pub error:2 36debug1: identity file C:\Users\fufl/.ssh/id_xmss-cert type -1 37debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.1 38debug1: Remote protocol version 2.0, remote software version OpenSSH_8.0 39debug1: match: OpenSSH_8.0 pat OpenSSH* compat 0x04000000 40debug2: fd 3 setting O_NONBLOCK 41debug1: Authenticating to xxx.xx.xx.xxx:xx as 'fufl' 42debug3: hostkeys_foreach: reading file "C:\Users\fufl/.ssh/known_hosts" 43debug3: record_hostkey: found key type ECDSA in file C:\Users\fufl/.ssh/known_hosts:2 44debug3: load_hostkeys: loaded 1 keys from xxx.xx.xx.xxx 45debug3: Failed to open file:C:/Users/fufl/.ssh/known_hosts2 error:2 46debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts error:2 47debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts2 error:2 48debug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521 49debug3: send packet: type 20 50debug1: SSH2_MSG_KEXINIT sent 51debug3: receive packet: type 20 52debug1: SSH2_MSG_KEXINIT received 53debug2: local client KEXINIT proposal 54debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c 55debug2: host key algorithms: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa 56debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com 57debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com 58debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1 59debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1 60debug2: compression ctos: none,zlib@openssh.com,zlib 61debug2: compression stoc: none,zlib@openssh.com,zlib 62debug2: languages ctos: 63debug2: languages stoc: 64debug2: first_kex_follows 0 65debug2: reserved 0 66debug2: peer server KEXINIT proposal 67debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1 68debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256,ssh-ed25519 69debug2: ciphers ctos: aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes256-cbc,aes128-gcm@openssh.com,aes128-ctr,aes128-cbc 70debug2: ciphers stoc: aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes256-cbc,aes128-gcm@openssh.com,aes128-ctr,aes128-cbc 71debug2: MACs ctos: hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512 72debug2: MACs stoc: hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512 73debug2: compression ctos: none,zlib@openssh.com 74debug2: compression stoc: none,zlib@openssh.com 75debug2: languages ctos: 76debug2: languages stoc: 77debug2: first_kex_follows 0 78debug2: reserved 0 79debug1: kex: algorithm: curve25519-sha256 80debug1: kex: host key algorithm: ecdsa-sha2-nistp256 81debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none 82debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none 83debug3: send packet: type 30 84debug1: expecting SSH2_MSG_KEX_ECDH_REPLY 85debug3: receive packet: type 31 86debug1: Server host key: ecdsa-sha2-nistp256 SHA256:XX... 87debug3: hostkeys_foreach: reading file "C:\Users\fufl/.ssh/known_hosts" 88debug3: record_hostkey: found key type ECDSA in file C:\Users\fufl/.ssh/known_hosts:2 89debug3: load_hostkeys: loaded 1 keys from xxx.xx.xx.xxx 90debug3: Failed to open file:C:/Users/fufl/.ssh/known_hosts2 error:2 91debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts error:2 92debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts2 error:2 93debug1: Host 'xxx.xx.xx.xxx' is known and matches the ECDSA host key. 94debug1: Found key in C:\Users\fufl/.ssh/known_hosts:2 95debug3: send packet: type 21 96debug2: set_newkeys: mode 1 97debug1: rekey out after 134217728 blocks 98debug1: SSH2_MSG_NEWKEYS sent 99debug1: expecting SSH2_MSG_NEWKEYS 100debug3: receive packet: type 21 101debug1: SSH2_MSG_NEWKEYS received 102debug2: set_newkeys: mode 0 103debug1: rekey in after 134217728 blocks
Windows10からログインしようとしています。
ちなみにSSH Keyを登録するの方ではログインまで行えました。
回答1件
あなたの回答
tips
プレビュー