[Win2linux-designer:66] SourceForge CVS の使い方

Back to archive index

超浪 choro****@freej*****
2003年 3月 25日 (火) 02:12:09 JST


どうも、超浪 です

Sourceforge.jp の ssh での cvs 使用がやっとのことで出来ました
私の様な初心者の方の参考になるかもしれないので、恥をしのんで
私がやったことをお知らせいたします

【やったこと】
※【Enter】はエンターキーを押した
※《key》は キーボードの key を入力

1.ssh1 の公開鍵を作成(一般ユーザーで作業)

 > ssh-keygen -t rsa1【Enter】
 > Enter file in which to save the key (~/.ssh/identity):《y》【Enter】
 > Enter passphrase (empty for no passphrase): 《password》【Enter】

2.ローカル環境変数 CVS_RSH に SSH へのパスを設定(tcsh にて作業)

 > setenv CVS_RSH ssh【Enter】
 > printenv CVS_RSH【Enter】----(確認のため)
 > ssh -------------------------(OK だと思った)

3./etc/ssh/ssh_config を編集(下記を有効にした)

   StrictHostKeyChecking ask
   IdentityFile ~/.ssh/identity
   Port 22

4.いよいよ実行してみた

 > cvs -z3 -d:ext:choro****@cvs*****:/cvsroot/win2linux co htdocs【Enter】
 The authenticity of host 'cvs.sourceforge.jp (61.215.208.25)' can't be established.
 DSA key fingerprint is **:**:**:**:**:** *:**:**:**:**:**:**:**:**:**.
 Are you sure you want to continue connecting (yes/no)? yes
 Warning: Permanently added 'cvs.sourceforge.jp' (DSA) to the list of known hosts.
 Permission denied (publickey,keyboard-interactive).
 cvs [checkout aborted]: end of file from server (consult above messages if any)

  なぜかエラーに......

5.下のように、いろいろとコマンドを変えたりしながら試してみた
 > cvs -d:ext:choro****@cvs*****:/cvsroot/win2linux co htdocs【Enter】
 Permission denied (publickey,keyboard-interactive).
 cvs [checkout aborted]: end of file from server (consult above messages if any)

  でもでもエラーに.....

6.検索しまくって、見つかった下記のコマンドを試してみた

 > ssh -v shell.sourceforge.jp【Enter】
 OpenSSH_3.5p1 FreeBSD-20030201, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
 debug1: Reading configuration data /etc/ssh/ssh_config
 debug1: Rhosts Authentication disabled, originating port will not be trusted.
 debug1: ssh_connect: needpriv 0
 debug1: Connecting to shell.sourceforge.jp [61.215.208.26] port 22.
 debug1: Connection established.
 debug1: identity file /home/masudaat/.ssh/identity type 0
 debug1: Remote protocol version 1.99, remote software version OpenSSH_3.4p1 Debian 1:3.4p1-1
 debug1: match: OpenSSH_3.4p1 Debian 1:3.4p1-1 pat OpenSSH*
 debug1: Enabling compatibility mode for protocol 2.0
 debug1: Local version string SSH-2.0-OpenSSH_3.5p1 FreeBSD-20030201
 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: 132/256
 debug1: bits set: 1570/3191
 debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
 debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
 The authenticity of host 'shell.sourceforge.jp (61.215.208.26)' can't be established.
 DSA key fingerprint is 07:ca:16:b6 f:a4:bf 3:4c:1d:ba:e1:12:bf:96:76.
 Are you sure you want to continue connecting (yes/no)? yes【Enter】
 Warning: Permanently added 'shell.sourceforge.jp' (DSA) to the list of known hosts.
 debug1: bits set: 1587/3191
  debug1: ssh_dss_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,keyboard-interactive
 debug1: next auth method to try is publickey
 debug1: next auth method to try is keyboard-interactive
 debug1: authentications that can continue: publickey,keyboard-interactive
 debug1: no more auth methods to try
 Permission denied (publickey,keyboard-interactive).
 debug1: Calling cleanup 0x804c158(0x0)

  ん? SSH2_MSG_ほにゃらら?....SSH1 の公開鍵なのに
  SSH2 が使われているではないか!!

7.早速 /etc/ssh/ssh_config を編集

  StrictHostKeyChecking ask
  IdentityFile ~/.ssh/identity
  Port 22
  Protocol 1,2 ----------(1をデフォルトにする様に書き加える)

8.成功!!!!

  ホームディレクトリに htdocs ディレクトリが出来て、次々とソースが
  ダウンロードされていきました

結構手間がかかったなぁ.....
....もう二時だ...寝ないと....


ちなみに、下記の URL はもうなくなったみたいですよ

 びぎねっとのssh解説
  http://begi.net/reading/ssh/linux.html

ssh 関係の簡単に説明しているサイトを探した結果、ここを参考にしました
 我楽 【SSHの導入】
  http://www.tcn.zaq.ne.jp/gara_k/pc_unix/pc_unix_019.htm


それでは、今日はおやすみなさい


/*------------------------------------------------------*
 超浪(choro)
  choro****@freej*****
  http://up.tok2.com/choro/
  MSN : choro****@hotma*****
 *------------------------------------------------------*/




Win2linux-designer メーリングリストの案内
Back to archive index