Ticket #31956

RSA, DSA鍵を登録してもCVS, SSHで接続できない。

Date d'ouverture: 2013-08-31 08:39 Dernière mise à jour: 2013-09-02 14:16

Rapporteur:
Propriétaire:
(Aucun)
État:
Atteints
Composant:
Jalon:
(Aucun)
Priorité:
7
Sévérité:
7
Résolution:
Aucun
Fichier:
Aucun

Détails

お世話になっております。 itisangoと名乗っております。

昨日2013年08月30日正午12:00頃にRSA、DSA公開鍵を登録いたしました。 しかし18時間以上経過した現在になっても、SSH認証でCVSが使えません。

>cvs -z3 -d:ext:itisango@cvs.sourceforge.jp:/cvsroot/freewnn co FreeWnn
Permission denied (publickey).
cvs [checkout aborted]: end of file from server (consult above messages if any)
> echo $CVS_RSH
ssh

(FreeWnn projectの方にaccess権は追加していただきました。 http://sourceforge.jp/projects/freewnn/lists/archive/users/2013-August/000177.html )

そこで、shell serverにconnectを試みました。 しかし、以下のmessageが出て接続できません。

> ssh -vvvv itisango@shells.sourceforge.jp
OpenSSH_6.2p2, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to shells.sourceforge.jp [202.221.179.26] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/mitsutoshi/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /home/mitsutoshi/.ssh/id_rsa type 1
debug1: identity file /home/mitsutoshi/.ssh/id_rsa-cert type -1
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/mitsutoshi/.ssh/id_dsa" as a RSA1 public key
debug1: identity file /home/mitsutoshi/.ssh/id_dsa type 2
debug1: identity file /home/mitsutoshi/.ssh/id_dsa-cert type -1
debug1: identity file /home/mitsutoshi/.ssh/id_ecdsa type -1
debug1: identity file /home/mitsutoshi/.ssh/id_ecdsa-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 1.99, remote software version OpenSSH_5.5p1 Debian-6+squeeze3
debug1: match: OpenSSH_5.5p1 Debian-6+squeeze3 pat OpenSSH_5*
debug2: fd 3 setting O_NONBLOCK
debug3: load_hostkeys: loading entries for host "shells.sourceforge.jp" from file "/home/mitsutoshi/.ssh/known_hosts"
debug3: load_hostkeys: found key type RSA in file /home/mitsutoshi/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys
debug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-rsa
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-rsa,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-dss-cert-v00@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-sha1,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-sha1,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: first_kex_follows 0 
debug2: kex_parse_kexinit: reserved 0 
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: first_kex_follows 0 
debug2: kex_parse_kexinit: reserved 0 
debug2: mac_setup: found hmac-md5
debug1: kex: server->client aes128-ctr hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 123/256
debug2: bits set: 508/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA 15:22:46:69:9f:ac:14:68:8a:be:f1:e4:29:7c:a9:51
debug3: load_hostkeys: loading entries for host "shells.sourceforge.jp" from file "/home/mitsutoshi/.ssh/known_hosts"
debug3: load_hostkeys: found key type RSA in file /home/mitsutoshi/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys
debug3: load_hostkeys: loading entries for host "202.221.179.26" from file "/home/mitsutoshi/.ssh/known_hosts"
debug3: load_hostkeys: found key type RSA in file /home/mitsutoshi/.ssh/known_hosts:2
debug3: load_hostkeys: loaded 1 keys
debug1: Host 'shells.sourceforge.jp' is known and matches the RSA host key.
debug1: Found key in /home/mitsutoshi/.ssh/known_hosts:1
debug2: bits set: 506/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/mitsutoshi/.ssh/id_dsa (0x7f47fc4c8bc0),
debug2: key: /home/mitsutoshi/.ssh/id_rsa (0x7f47fc4c8b80),
debug2: key: /home/mitsutoshi/.ssh/id_ecdsa ((nil)),
debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering DSA public key: /home/mitsutoshi/.ssh/id_dsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey
debug1: Offering RSA public key: /home/mitsutoshi/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/mitsutoshi/.ssh/id_ecdsa
debug3: no such identity: /home/mitsutoshi/.ssh/id_ecdsa: No such file or directory
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey).

同じ鍵を使って別のserverには正常に接続出来ております。

> ssh -v mitsutoshi@103.8.49.252
OpenSSH_6.2p2, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: Connecting to 103.8.49.252 [103.8.49.252] port 22.
debug1: Connection established.
debug1: identity file /home/mitsutoshi/.ssh/id_rsa type 1
debug1: identity file /home/mitsutoshi/.ssh/id_rsa-cert type -1
debug1: identity file /home/mitsutoshi/.ssh/id_dsa type 2
debug1: identity file /home/mitsutoshi/.ssh/id_dsa-cert type -1
debug1: identity file /home/mitsutoshi/.ssh/id_ecdsa type -1
debug1: identity file /home/mitsutoshi/.ssh/id_ecdsa-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_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH_5*
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 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 2a:27:d5:34:31:7d:dc:72:5b:75:25:11:1e:e9:7a:d4
debug1: Host '103.8.49.252' is known and matches the RSA host key.
debug1: Found key in /home/mitsutoshi/.ssh/known_hosts:5
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
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 DSA public key: /home/mitsutoshi/.ssh/id_dsa
debug1: Server accepts key: pkalg ssh-dss blen 434
debug1: Authentication succeeded (publickey).
Authenticated to 103.8.49.252 ([103.8.49.252]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = ja_JP.utf8
debug1: Sending env LC_CTYPE = ja_JP.utf8
Last login: Sat Aug 31 07:51:40 2013 from zaq3d2ec1b9.zaq.ne.jp

正常にCVS, SSHで接続するにはどうすれば良いでしょうか?

なお http://sourceforge.jp/projects/sourceforge/docs/ssh_pubkeys/ja/1/ssh_pubkeys.html http://sourceforge.jp/docs/SSH%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E3%81%AE%E3%81%9F%E3%82%81%E3%81%AE%E3%82%AD%E3%83%BC からのlink「数時間たってもサーバにログインできない場合は、SourceForge.JPのサポート要求に登録してください。」 http://sourceforge.jp/tracker/index.php?func=add&group_id=1&atid=114 がlink切れになっています。

Ticket History (3/6 Histories)

2013-08-31 08:39 Updated by: itisango
  • New Ticket "RSA, DSA鍵を登録してもCVS, SSHで接続できない。" created
2013-09-02 12:55 Updated by: ishikawa
  • Résolution Update from Aucun to Fixed
Commentaire

すいません 調査しましたが ssh key ファイルを生成するスクリプトのエラー処理に問題があり なんらかの理由で一度 実行に失敗すると(sshキーが追加されるなどしない限り)該当ユーザのキーが書きだされない問題がありました。

先ほど 更新を行いましたので 現在はログインできる状態になっていると思います ご確認ください。

2013-09-02 13:24 Updated by: itisango
  • Résolution Update from Fixed to Aucun
Commentaire

お世話になっております。 お陰様でshell serverの方には無事に接続できました。

> ssh  itisango@shells.sourceforge.jpLast login: Mon Sep  2 13:12:23 2013 from zaq3d2ec1b9.zaq.ne.jp
itisango@sf-usr-shell:~$ 

しかしCVSの方には相変わらず接続できません。

> cvs -z3 -d:ext:itisango@cvs.sourceforge.jp:/cvsroot/freewnn co FreeWnn
Permission denied (publickey).
cvs [checkout aborted]: end of file from server (consult above messages if any)
> echo $CVS_RSH
ssh

何か私の方のmissでしょうか?

2013-09-02 14:00 Updated by: sugi
  • État Update from Ouvert to Atteints
  • Ticket Close date is changed to 2013-09-02 14:00
Commentaire

失礼しました。 CVS サーバのほうが反映されていませんでした。

同じく修正いたしました。

2013-09-02 14:15 Updated by: itisango
Commentaire

CVS serverへの接続に成功しました。 対応ありがとうございます。

2013-09-02 14:16 Updated by: ishikawa
Commentaire

itisango への返信

なお http://sourceforge.jp/projects/sourceforge/docs/ssh_pubkeys/ja/1/ssh_pubkeys.html http://sourceforge.jp/docs/SSH%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E3%81%AE%E3%81%9F%E3%82%81%E3%81%AE%E3%82%AD%E3%83%BC からのlink「数時間たってもサーバにログインできない場合は、SourceForge.JPのサポート要求に登録してください。」 http://sourceforge.jp/tracker/index.php?func=add&group_id=1&atid=114 がlink切れになっています。

こちらもご報告ありがとうございます 修正しておきました。

Attachment File List

No attachments

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion