Re: SSH Help - OpenSSH
Mike <[email protected]> Mon, 17 Dec 2007 12:54:41 -0800 (PST)
| Newsgroups | gmane.network.ssh.windows |
|---|---|
| Message-ID | <[email protected]> |
--0-2030164428-1197924881=:97949 Content-Type: text/plain; charset=us-ascii Try running "ssh-user-config" on the client. ----- Original Message ---- From: Vagner Pinto Morais <[email protected]> To: "[email protected]" <[email protected]> Sent: Monday, December 17, 2007 2:39:36 AM Subject: SSH Help - OpenSSH Hi Guys, Im trying to acess a unix server from a windows machine via ssh using openssh as ssh server. Im wondering if you could inform me about the procedure that I need to follow, to have acess to the unix server without password, i mean, with public key authentication. I have generated a public key via ssh-keygen, and I have copied the public key to the unix server to ~/.ssh/authorized_keys. However, I still get the password prompt, with the following verbose information: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% vpmorais@lx2pc247 /etc $ ssh -v [email protected] ls OpenSSH_4.7p1, OpenSSL 0.9.8e 23 Feb 2007 debug1: Reading configuration data /etc/ssh_config debug1: Connecting to lxhp19.optimus.pt [172.19.24.19] port 22. debug1: Connection established. debug1: identity file /home/vpmorais/.ssh/identity type -1 debug1: identity file /home/vpmorais/.ssh/id_rsa type 1 debug1: identity file /home/vpmorais/.ssh/id_dsa type 2 debug1: Remote protocol version 2.0, remote software version OpenSSH_3.5p1 debug1: match: OpenSSH_3.5p1 pat OpenSSH_3.* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.7 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(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: Host 'lxhp19.optimus.pt' is known and matches the RSA host key. debug1: Found key in /home/vpmorais/.ssh/known_hosts:2 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: external-keyx,gssapi,publickey,passwo rd,keyboard-interactive debug1: Next authentication method: publickey debug1: Trying private key: /home/vpmorais/.ssh/identity debug1: Offering public key: /home/vpmorais/.ssh/id_rsa debug1: Authentications that can continue: external-keyx,gssapi,publickey,passwo rd,keyboard-interactive debug1: Offering public key: /home/vpmorais/.ssh/id_dsa debug1: Authentications that can continue: external-keyx,gssapi,publickey,passwo rd,keyboard-interactive debug1: Next authentication method: keyboard-interactive debug1: Authentications that can continue: external-keyx,gssapi,publickey,passwo rd,keyboard-interactive debug1: Next authentication method: password [email protected]'s password: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Why is it not working the public key authentication? Any help? Thanks for your help. Best regards Vagner ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs --0-2030164428-1197924881=:97949 Content-Type: text/html; charset=us-ascii <html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Try running "ssh-user-config" on the client.<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Vagner Pinto Morais <[email protected]><br>To: "[email protected]" <[email protected]><br>Sent: Monday, December 17, 2007 2:39:36 AM<br>Subject: SSH Help - OpenSSH<br><br> <div dir="ltr" align="left"><font face="Arial" size="2"><span class="572372816-14122007">Hi Guys,</span></font></div> <div><font face="Arial" size="2"><span class="572372816-14122007"></span></font> </div> <div><font face="Arial" size="2"><span class="572372816-14122007">Im trying to acess a unix server from a windows machine via ssh using openssh as ssh server. Im wondering if you could inform me about the procedure that I need to follow, to have acess to the unix server without password, i mean, with public key authentication.</span></font></div> <div><font face="Arial" size="2"><span class="572372816-14122007"></span></font> </div> <div><font face="Arial" size="2"><span class="572372816-14122007">I have generated a public key via ssh-keygen, and I have copied the public key to the unix server to <font face="Courier New" size="3">~/.ssh/authorized_keys. <font face="Arial" size="2">However,</font> <font face="Arial" size="2">I still get the password prompt, with the following verbose information:</font></font></span></font></div> <div><font face="Courier New" size="3"><span class="572372816-14122007"></span></font> </div> <div><font face="Arial" size="2"><span class="572372816-14122007"><font face="Courier New" size="3">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</font></span></font></div> <div><font face="Arial" size="2"><span class="572372816-14122007"><font face="Courier New" size="3"></font></span></font> </div> <div><font face="Arial" size="2"><span class="572372816-14122007"><a rel="nofollow" ymailto="mailto:vpmorais@lx2pc247" target="_blank" href="mailto:vpmorais@lx2pc247">vpmorais@lx2pc247</a> /etc<br>$ ssh -v <a rel="nofollow" ymailto="mailto:[email protected]" target="_blank" href="mailto:[email protected]">[email protected]</a> ls<br>OpenSSH_4.7p1, OpenSSL 0.9.8e 23 Feb 2007<br>debug1: Reading configuration data /etc/ssh_config<br>debug1: Connecting to <a target="_blank" href="http://lxhp19.optimus.pt">lxhp19.optimus.pt</a> [172.19.24.19] port 22.<br>debug1: Connection established.<br>debug1: identity file /home/vpmorais/.ssh/identity type -1<br>debug1: identity file /home/vpmorais/.ssh/id_rsa type 1<br>debug1: identity file /home/vpmorais/.ssh/id_dsa type 2<br>debug1: Remote protocol version 2.0, remote software version OpenSSH_3.5p1<br>debug1: match: OpenSSH_3.5p1 pat OpenSSH_3.*<br>debug1: Enabling compatibility mode for protocol 2.0<br>debug1: Local version string SSH-2.0-OpenSSH_4.7<br>debug1: SSH2_MSG_KEXINIT sent<br>debug1: SSH2_MSG_KEXINIT received<br>debug1: kex: server->client aes128-cbc hmac-md5 none<br>debug1: kex: client->server aes128-cbc hmac-md5 none<br>debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent<br>debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP<br>debug1: SSH2_MSG_KEX_DH_GEX_INIT sent<br>debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY<br>debug1: Host '<a target="_blank" href="http://lxhp19.optimus.pt">lxhp19.optimus.pt</a>' is known and matches the RSA host key.<br>debug1: Found key in /home/vpmorais/.ssh/known_hosts:2<br>debug1: ssh_rsa_verify: signature correct<br>debug1: SSH2_MSG_NEWKEYS sent<br>debug1: expecting SSH2_MSG_NEWKEYS<br>debug1: SSH2_MSG_NEWKEYS received<br>debug1: SSH2_MSG_SERVICE_REQUEST sent<br>debug1: SSH2_MSG_SERVICE_ACCEPT received<br>debug1: Authentications that can continue: external-keyx,gssapi,publickey,passwo<br>rd,keyboard-interactive<br>debug1: Next authentication method: publickey<br>debug1: Trying private key: /home/vpmorais/.ssh/identity<br>debug1: Offering public key: /home/vpmorais/.ssh/id_rsa<br>debug1: Authentications that can continue: external-keyx,gssapi,publickey,passwo<br>rd,keyboard-interactive<br>debug1: Offering public key: /home/vpmorais/.ssh/id_dsa<br>debug1: Authentications that can continue: external-keyx,gssapi,publickey,passwo<br>rd,keyboard-interactive<br>debug1: Next authentication method: keyboard-interactive<br>debug1: Authentications that can continue: external-keyx,gssapi,publickey,passwo<br>rd,keyboard-interactive<br>debug1: Next authentication method: password<br><a rel="nofollow" ymailto="mailto:[email protected]'s" target="_blank" href="mailto:[email protected]%27s">[email protected]'s</a> password:</span></font></div> <div><font face="Arial" size="2"><span class="572372816-14122007"></span></font> </div> <div><font size="-0"><span class="572372816-14122007"><font face="Arial" size="2">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</font></span></font></div> <div><font size="-0"><font face="Arial" size="2"></font> </font></div> <div><span class="572372816-14122007"><font size="-0"><font face="Arial" size="2">Why is it not working the public key authentication?</font></font></span></div> <div><font size="-0"><font face="Arial" size="2"></font> </font></div> <div><font face="Arial" size="2"><span class="572372816-14122007">Any help? Thanks for your help.</span></font></div> <div><font face="Arial" size="2"><span class="572372816-14122007"></span></font> </div> <div><font face="Arial" size="2"><span class="572372816-14122007">Best regards</span></font></div> <div><font face="Arial" size="2"><span class="572372816-14122007"></span></font> </div> <div><font face="Arial" size="2"><span class="572372816-14122007">Vagner </span></font></div></div><br></div></div><br> <hr size=1>Be a better friend, newshound, and know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a></body></html> --0-2030164428-1197924881=:97949-- -- List Info: http://erdelynet.com/ssh-l/ List Archives: http://erdelynet.com/archive/ssh-l/ To Unsubscribe: Mail mailto:[email protected]