###XSERVERに接続できていたが、「Permission denied (publickey,gssapi-keyex,gssapi-with-mic).のエラー」がでるようになり、接続できなくなった。
ここに質問の内容を詳しく書いてください。
XSERVERにGitを導入し、pushで更新できるようセットアップにトライしていたところ、サーバーにSSH接続できなくなりました。
<環境>
windows 10 home
Powershell, git bash, Tera Term
Tera Termでも「認証に失敗しました。再試行してください。」となります。
「Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
該当のソースコード
PS C:\Users\user> ssh -l サーバーID -i ~/.ssh/sample.key サーバーID.xsrv.jp -p 10022 Enter passphrase for key 'C:\Users\user/.ssh/sample.key': サーバーID@サーバーID.xsrv.jp: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
試したこと
鍵を作り替えた。パスフレーズを再度確認したが結果は変わらなかった。
doda様
ssh -v -l serverID -i ~/.ssh/id_rsa serverID.xsrv.jp -p 10022 にてデバグをしました。
結果は以下の通りでした。
debug1: Connecting to serverID.xsrv.jp [183.181.88.**] port 10022.
debug1: Connection established.
debug1: identity file C:\Users\user/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file C:\Users\user/.ssh/id_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_7.7
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4
debug1: match: OpenSSH_7.4 pat OpenSSH* compat 0x04000000
debug1: Authenticating to serverID.xsrv.jp:10022 as 'glowforward'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:V0GmZVuUlP6tQw5MYbGelfcq+IQwq/6+HnH1OPAcaLo
debug1: Host '[serverID.xsrv.jp]:10022' is known and matches the ECDSA host key.
debug1: Found key in C:\Users\user/.ssh/known_hosts:1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: pubkey_prepare: ssh_get_authentication_socket: No such file or directory
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:FOvG8QMCC1TlbABQrKTQ8f3tCFANbkzK7fqVYiProes C:\Users\user/.ssh/id_rsa
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic
debug1: No more authentication methods to try.
serverID@sample.xsrv.jp: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
*個人のサーバーIDをserverIDに変更して記載しております。
補足情報(FW/ツールのバージョンなど)


回答3件
あなたの回答
tips
プレビュー