Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Can't get authorized_keys to work

From: Neil Aggarwal <neil(at)JAMMConsulting.com>
Date: Tue Apr 08 2003 - 21:02:38 EDT


Hello:

I am trying to use cygwin to set-up an authorized_keys file on my server to allow me to automatically login without a password.

My client machine is Windows 2000 Professional and the server is RedHat Linux 7.3. The sshd on the server is OpenSSH_3.1p1

I ran the cygwin shell by double-clicking the icon that it created on the desktop.

Next, I connected to my server by typing: ssh neil@cvs.JAMMConsulting.com
It asked me to accept the host key and then my password. I logged on successfully. Then, I logged out of the server.

I then tried to create the keys by typing:

        ssh-keygen -t rsa
I hit return on all of the prompts. This created an id_rsa and id_rsa.pub in the .ssh directory under my home directory.

I then transferred the id_rsa.pub file to the server by first logging onto the server using

Do you need help?X

        sftp neil@cvs.JAMMConsulting.com
It asked me for my password so I supplied it. Once in, I had to create an .ssh directory, so I did these commands:

	mkdir .ssh
	cd .ssh
I then transferred the file with this command:
	put id_rsa.pub authorized_keys

Once finished, I exited the sftp session and tried logging in again with:

        ssh neil@cvs.JAMMConsulting.com
But it is still asking for a password.

When I use:

        ssh -v neil@cvs.JAMMConsulting.com

I get these messages:

OpenSSH_3.6.1p1, SSH protocols 1.5/2.0, OpenSSL 0x0090701f debug1: Rhosts Authentication disabled, originating port will not be trusted.

debug1: Connecting to cvs.JAMMConsulting.com [204.130.252.206] port 22.
debug1: Connection established.
debug1: identity file /home/Neil Aggarwal/.ssh/identity type -1
debug1: identity file /home/Neil Aggarwal/.ssh/id_rsa type 1
debug1: identity file /home/Neil Aggarwal/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.1p1
debug1: match: OpenSSH_3.1p1 pat OpenSSH_2.*,OpenSSH_3.0*,OpenSSH_3.1*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.6.1p1
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: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'cvs.jammconsulting.com' is known and matches the RSA host key.
debug1: Found key in /home/Neil Aggarwal/.ssh/known_hosts:1
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:
publickey,password,keyboard-interacti
ve
debug1: Next authentication method: publickey
debug1: Trying private key: /home/Neil Aggarwal/.ssh/identity
debug1: Offering public key: /home/Neil Aggarwal/.ssh/id_rsa
debug1: Authentications that can continue:
publickey,password,keyboard-interacti
ve
debug1: Trying private key: /home/Neil Aggarwal/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue:
Do you need more help?X
publickey,password,keyboard-interacti
ve
debug1: Next authentication method: password neil@cvs.jammconsulting.com's password:

Any ideas?

Thanks,

Can we help you?X

        Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.    (972) 612-6056, 
http://www.JAMMConsulting.com
Custom Internet Development    Websites, Ecommerce, Java, databases
Received on Wed Apr 9 18:20:58 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:57 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library