[exerb-dev] ssh経由で出来ない

Back to archive index

NAKANO Kouichi knuck****@f8*****
2002年 6月 17日 (月) 20:43:15 JST


Yuya Kato <yuya****@katod*****> wrote
at Sun, 16 Jun 2002 23:16:41 +0900 in Re: [exerb-dev] ssh経由で出来ない
> ちなみに私はexerb-modeとexerb-initというシェルスクリプトを
>作って、作業しています。
>それぞれのファイルの内容は下記の通りで、[exerb-mode]を実行すれば
>Exerbを編集する環境が整うようにしています。
>ご参考までに。

ありがとうございます。
参考にさせていただきます。
多分、嫌になるほど単純なミスが原因だと思うのですが、少し落ち着いて
調査と試行をしてみます。
とはいえ、特に突破口も見えてこないので、仕方なくパッチを送ります。
ARGV[0]問題と初期化時警告問題の回避です。

Index: src/exerb/exerb.cpp
===================================================================
RCS file: /cvsroot/exerb/exerb/src/exerb/exerb.cpp,v
retrieving revision 1.2
diff -c -w -r1.2 exerb.cpp
*** src/exerb/exerb.cpp	15 Jun 2002 10:18:31 -0000	1.2
--- src/exerb/exerb.cpp	17 Jun 2002 11:28:55 -0000
***************
*** 150,157 ****
  
  	::NtInitialize(&argc, &argv);
  	::ruby_init();
! 	::ruby_prog_init();
! 	::ruby_set_argv(argc, argv);
  	::ruby_script("ruby");
  }
  
--- 150,156 ----
  
  	::NtInitialize(&argc, &argv);
  	::ruby_init();
! 	::ruby_set_argv(argc - 1, argv + 1);
  	::ruby_script("ruby");
  }
  
-------------------

>$ ssh -v shell.sourceforge.jp
>を実行して、その結果を教えていただけませんか?

OpenSSH_3.2.3p1, SSH protocols 1.5/2.0, OpenSSL 0x0090604f
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: restore_uid
debug1: ssh_connect: getuid 500 geteuid 500 anon 1
debug1: Connecting to shell.sourceforge.jp [61.215.208.26] port 22.
debug1: temporarily_use_uid: 500/513 (e=500)
debug1: restore_uid
debug1: temporarily_use_uid: 500/513 (e=500)
debug1: restore_uid
debug1: Connection established.
debug1: identity file /home/Administrator/.ssh/identity type 0
debug1: identity file /home/Administrator/.ssh/id_rsa type -1
debug1: identity file /home/Administrator/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.0.2p1 Debian 1:3.0.2p1-9
debug1: match: OpenSSH_3.0.2p1 Debian 1:3.0.2p1-9 pat OpenSSH_2.*,OpenSSH_3.0*,OpenSSH_3.1*
Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.2.3p1
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: 127/256
debug1: bits set: 1592/3191
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'shell.sourceforge.jp' is known and matches the RSA host key.
debug1: Found key in /home/Administrator/.ssh/known_hosts:2
debug1: bits set: 1578/3191
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,keyboard-interactive
debug1: next auth method to try is publickey
debug1: try privkey: /home/Administrator/.ssh/id_rsa
debug1: try privkey: /home/Administrator/.ssh/id_dsa
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 0x41aa2c(0x0)




exerb-developer メーリングリストの案内
Back to archive index