ssh always asks for passwd

Support for security such as Firewalls and securing linux
Post Reply
liderbug
Posts: 5
Joined: 2006/07/19 12:55:05
Contact:

ssh always asks for passwd

Post by liderbug » 2006/07/19 13:04:54

Two boxes A & B. A is FC4, B is (new) CentOS-4. I have done ssh-keygen -t rsa -b 1024 on both boxes. Copied the pub key each box.

Here is my problem: ssh B ... password?
ssh A goes right in (just like the book says it should)

A -> B

debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/chuck/.ssh/identity
debug1: Offering public key: /home/chuck/.ssh/id_rsa
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Trying private key: /home/chuck/.ssh/id_dsa
debug1: Next authentication method: password
chuck@thunder's password: :-(

B -> A

debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/chuck/.ssh/identity
debug1: Offering public key: /home/chuck/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 149
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
Last login: Wed Jul 19 07:01:27 2006 from sg4

What did I miss?

Thanks

liderbug
Posts: 5
Joined: 2006/07/19 12:55:05
Contact:

Re: ssh always asks for passwd - Ah Ha!

Post by liderbug » 2006/07/19 14:16:06

:-D
sshd checks the permissions of the subdir $HOME/.ssh
Ain't 700, ain't working.

I love computers
I love computers
I love computers
I love computers
I love computers
I love computers

If you say it enough times .........

:lol:

Post Reply

Return to “CentOS 4 - Security Support”