[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[plamo:11348] Re: CVS server for plamo docs



  まちの さん、こんにちは
  > # 外していたら無視ください。
いえいえ
  > 
  > CVS Serverでのクライアントの接続として
  > sshの設定はssh2用になってますか?
  > (なんか意味不明になてるかな...)
  > 
  > OpenSSH_2.9p2はデフォルトでssh2での接続になります。
  > # それ以前(いつからかは忘れましたが)はssh1でした。
  > # だったと思います...:)

あ〜、はい、何やら挙動が違うようです、確かに。
ノートのほうは MOUE さんと同じ
SSH Version OpenSSH_2.1.1, protocol versions 1.5/2.0.
Compiled with SSL (0x0090581f).

plamo2.2 が入っているほうは ssh をバージョンアップしたので、
OpenSSH_2.9p2, SSH protocols 1.5/2.0, OpenSSL 0x0090600f

と、いま、ふたつの環境があります。

  > plamo.linet.gr.jpでのユーザ jeanneでssh2用のキーがあるか?
  > を確認されてはどうでしょうか?

これは man を見ましたら、
 SSH protocol version 1
SSH protocol version 2
認証方法が違うようですね。
OpenSSH_2.9p2, では、~/.ssh には、known_hosts2 というファイルが作られる。
でもやっぱり auto みたいですよ。
その他3つのファイルが必要なようですが。ここがうまくいってないのかしら。

(1)ノートのほう MOUE さんのアドバイスのように、
ssh -v -l jeanne sv5.linet.gr.jp これで試してみましたら、
やっぱりパスワードの入力でこける。

harry:~$ ssh -v -l jeanne sv5.linet.gr.jp
SSH Version OpenSSH_2.1.1, protocol versions 1.5/2.0.
Compiled with SSL (0x0090581f).
debug: Reading configuration data /etc/ssh/ssh_config
debug: Applying options for *
debug: Seeding random number generator
debug: ssh_connect: getuid 10002 geteuid 0 anon 0
debug: Connecting to sv5.linet.gr.jp [210.160.33.156] port 22.
debug: Seeding random number generator
debug: Allocated local port 942.
debug: Connection established.
debug: Remote protocol version 1.99, remote software version OpenSSH_2.9p2
debug: Local version string SSH-1.5-OpenSSH_2.1.1
debug: Waiting for server public key.
debug: Received server public key (768 bits) and host key (1024 bits).
debug: Host 'sv5.linet.gr.jp' is known and matches the RSA host key.
debug: Seeding random number generator
debug: Encryption type: 3des
debug: Sent encrypted session key.
debug: Installing crc compensation attack detector.
debug: Received encrypted confirmation.
debug: Doing password authentication.
jeanne@sv5.linet.gr.jp's password:    ●ここでだめみたい
Read from socket failed: ???????????????
debug: Calling cleanup 0x805aa84(0x0)


(2)OpenSSH_2.9p2, こちらの環境だと、

penguin:~/plamo-cvs$ ssh -l jeanne sv5.linet.gr.jp
jeanne@sv5.linet.gr.jp's password: 
Permission denied, please try again.
同じようにパスワードの入力でこけるのですが、

penguin:~/plamo-cvs$ ssh -v -l jeanne sv5.linet.gr.jp
OpenSSH_2.9p2, SSH protocols 1.5/2.0, OpenSSL 0x0090600f
debug1: Reading configuration data /usr/local/etc/ssh_config
debug1: Seeding random number generator
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: restore_uid
debug1: ssh_connect: getuid 10001 geteuid 0 anon 1
debug1: Connecting to sv5.linet.gr.jp [210.160.33.156] port 22.
debug1: temporarily_use_uid: 10001/100 (e=0)
debug1: restore_uid
debug1: temporarily_use_uid: 10001/100 (e=0)
debug1: restore_uid
debug1: Connection established.
debug1: read PEM private key done: type DSA
debug1: read PEM private key done: type RSA
debug1: identity file /home/jeanne/.ssh/identity type -1
debug1: identity file /home/jeanne/.ssh/id_rsa type -1
debug1: identity file /home/jeanne/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_2.9p2
debug1: match: OpenSSH_2.9p2 pat ^OpenSSH
Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_2.9p2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: dh_gen_key: priv key bits set: 131/256
debug1: bits set: 1013/2049
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'sv5.linet.gr.jp' is known and matches the RSA host key.
debug1: Found key in /home/jeanne/.ssh/known_hosts2:2
debug1: bits set: 1006/2049
debug1: ssh_rsa_verify: signature correct
debug1: kex_derive_keys
debug1: newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: waiting for SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: done: ssh_kex2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug1: service_accept: ssh-userauth
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: authentications that can continue: publickey,password,keyboard-interactive
debug1: next auth method to try is publickey
debug1: try privkey: /home/jeanne/.ssh/identity
debug1: try privkey: /home/jeanne/.ssh/id_rsa
debug1: try privkey: /home/jeanne/.ssh/id_dsa
debug1: next auth method to try is password
jeanne@sv5.linet.gr.jp's password: 

debug1: authentications that can continue: publickey,password,keyboard-interactive
Permission denied, please try again.
● publickey,password,keyboard-interactive
これ?~/.ssh にはいまは、known_hosts2 というファイルしか作られていないので、
debug1: try privkey: /home/jeanne/.ssh/identity
debug1: try privkey: /home/jeanne/.ssh/id_rsa
debug1: try privkey: /home/jeanne/.ssh/id_dsa
これがちゃんとなってないような気がするのだけれど、
(1)の環境でもログインできないみたいだから、
何か変だね。

中谷千絵

References
[plamo:11336] Re: CVS server for plamo docs, MACHINO Satoshi

[検索ページ] [メール一覧]
Plamo ML 公開システム