This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / 那位大仙做过ssh 免password远程登陆? ssh_host_rsa_key.pub,ssh_host_dsa_key.pub,.rhost, host.equiv, shost.equiv 都试过了,还是要password.environment:
AIX: 5.3L
SW: OpenSSH_4.1p1, OpenSSL 0.9.7g 11 Apr 2005
Purpose:
to enable a compressed tunnel between hosts on WAN, the ssh command line need to add to rc.d directory or inetd.conf
-647i(流浪的步行万里);
2006-6-6
{201}
(#3013371@0)
-
^^
-647i(流浪的步行万里);
2006-6-6
(#3013442@0)
-
Put the public key into ~username/.ssh/authorized_keys, try to log in again with your private key, if still failed, then check the log from the session.
-fried_noodles(hungry);
2006-6-6
(#3013465@0)
-
here is debug info.
-647i(流浪的步行万里);
2006-6-6
{7732}
(#3013629@0)
-
1. How did you generate the keys, via "ssh-keygen" on the same platform? 2. is there a $HOME/.ssh/authorized_keys on remote machine?
-fried_noodles(hungry);
2006-6-6
(#3013788@0)
-
1, yes, 2,yes, 2: I didn't reset file mode to 600. when reset, it works. THANSK>
-647i(流浪的步行万里);
2006-6-6
(#3013967@0)
-
I guess you might solve the problem by changing the source code of ssh a little bit. Add the password in the source code itself. Use the default password by option.
-iwantcar(流浪的EnjoyStudying);
2006-6-6
(#3013654@0)
-
I did same thing on Linux box, attached is the procedure, hope it can help
-f001(高望川);
2006-6-6
{703}
(#3013680@0)
-
I guess this is very good, though I don't know much about this.
-iwantcar(流浪的EnjoyStudying);
2006-6-6
(#3013708@0)
-
is step #8 a must? I didn't do that because I am thinking it is about X-sessions. Thanks for reply.
-647i(流浪的步行万里);
2006-6-6
(#3013785@0)
-
yes, it is required.
-f001(高望川);
2006-6-6
(#3013792@0)
-
我从没做过这一步。就是建key pair, 传文件,还有置600权限。
http://www.linuxproblem.org/art_9.html
-holdon(again);
2006-6-6
(#3013859@0)
-
u r right, it is difficult to catch server side problem by turn on client side debug, server won't release any security related info to client before login, becuase it is "secure" sh.
-647i(流浪的步行万里);
2006-6-6
(#3013962@0)
-
DONE. just follow #3013680 step 1~7 is fine. My problem is the file permission problem with the file authorized_key and authorized_key2. it support to be 600 or 640, i set it to 660, after chmod to 640, it works.Thanks to everybody here.
-647i(流浪的步行万里);
2006-6-6
{25}
(#3013946@0)