###前提・実現したいこと
XserverでSSH接続
###発生している問題・エラーメッセージ
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
以下はなくなりました
Received disconnect from ...: 2: Too many authentication failures for id
エラーメッセージ Permission denied (publickey,gssapi-keyex,gssapi-with-mic). 以下はなくなりました Received disconnect from ...: 2: Too many authentication failures for id
デバッグ OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 debug1: Reading configuration data /etc/ssh_config debug1: /etc/ssh_config line 20: Applying options for * debug1: /etc/ssh_config line 102: Applying options for * debug1: Connecting to id.xserver.jp [...] port 10022. debug1: Connection established. debug1: identity file /Home/.ssh/id_rsa type 1 debug1: identity file /Home/.ssh/id_rsa-cert type -1 debug1: identity file /Home/.ssh/id_dsa type -1 debug1: identity file /Home/.ssh/id_dsa-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.2 debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1 debug1: match: OpenSSH_6.6.1 pat OpenSSH* debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Server host key: RSA debug1: Host '[id.xserver.jp]:10022' is known and matches the RSA host key. debug1: Found key in /Home/.ssh/known_hosts:1 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic debug1: Next authentication method: publickey debug1: Offering RSA public key: /Home/.ssh/id_rsa debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic debug1: Offering RSA public key: /Home/.ssh/id_rsa debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic debug1: Offering RSA public key: /Home/.ssh/id_rsa debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic debug1: Offering RSA public key: /Home/.ssh/id_rsa debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic debug1: Offering RSA public key: /Home/.ssh/id_rsa debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic debug1: Offering RSA public key: /Home/.ssh/id_rsa Received disconnect from ...: 2: Too many authentication failures for id
追記 デバッグ ssh-add -D 使用後 OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 debug1: Reading configuration data /etc/ssh_config debug1: /etc/ssh_config line 20: Applying options for * debug1: /etc/ssh_config line 102: Applying options for * debug1: Connecting to id.xserver.jp [...] port 10022. debug1: Connection established. debug1: identity file /home/.ssh/id_rsa type 1 debug1: identity file /home/.ssh/id_rsa-cert type -1 debug1: identity file /home/.ssh/id_dsa type -1 debug1: identity file /home/.ssh/id_dsa-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.2 debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1 debug1: match: OpenSSH_6.6.1 pat OpenSSH* debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Server host key: RSA debug1: checking without port identifier The authenticity of host '[id.xserver.jp]:10022 ([...]:10022)' can't be established. RSA key fingerprint is . Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '[id.xserver.jp]:10022,[...]:10022' (RSA) to the list of known hosts. debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic debug1: Next authentication method: publickey debug1: Offering RSA public key: /home/.ssh/id_rsa debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic debug1: Trying private key: /home/.ssh/id_dsa debug1: No more authentication methods to try. Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
*IDなど個人情報のため一部改変しています。
###試したこと
1、rm -r ~/.ssh
2、mkdir ~/.ssh
3、ssh-keygen -t rsa
4、chmod 700 ~/.ssh
5、chmod 600 ~/.ssh/id_rsa
6、pbcopy < ~/.ssh/id_rsa.pub
7、Xserver内のSSH設定の公開鍵設定・登録に貼り付けて登録
8、ssh -l id -p 10022 id.xserver.jp -v
*ssh -l id -p 10022 id.xserver.jp -o PreferredAuthentications=pass
*で試した時はPermission denied (publickey,gssapi-keyex,gssapi-with-mic).になります。
*またXserverより公開鍵を生成した場合も同様のエラーが出ます。
追記
ssh-add -Dを実行後、再度上記手順を試しました
###補足情報(言語/FW/ツール等のバージョンなど)
Xserver
OpenSSH_6.2p2
OSSLShim 0.9.8r
MacBook Air 2012
標準ターミナル
複数のサイトの方法にて何度も試しましたがうまくいきませんので
わかる方がいましたらどうかよろしくお願いいたします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/10/13 10:13
2016/10/14 00:28
2016/10/14 10:13
2016/11/04 01:05