Computing.Net > Forums > Linux > Cannot get SSH to work w/o password

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Cannot get SSH to work w/o password

Reply to Message Icon

Name: agifford
Date: May 7, 2003 at 19:19:10 Pacific
OS: Linux Redhat
CPU/Ram: P3-500/1Gig
Comment:

I have tried everything I can think of to get my hosts to authenticate via ssh without requiring a password. Nothing works.

I have tried generating new keys with ssh-keygen and then putting the .pub key in the remote machines authorized_keys file, but that does not seem to be working either.

Everything I have read says it should be working...Here is the -v results from my latest attempt, does anyone have any idea why this is not working, or can offer advice of what to try next? I want to use this for an automated mirror, so it cannot ask for a password.

command> ssh -v 10.0.0.21
SSH Version 1.2.26 [i586-unknown-linux], protocol version 1.5.
Standard version. Does not use RSAREF.
dev.myurl.com: Reading configuration data /usr/man/man6/ssh_config
dev.myurl.com: ssh_connect: getuid 0 geteuid 0 anon 0
dev.myurl.com: Allocated local port 1023.
dev.myurl.com: Connecting to 10.0.0.21 port 22.
dev.myurl.com: Connection established.
dev.myurl.com: Remote protocol version 1.5, remote software version OpenSSH_2.5.2p2
dev.myurl.com: Waiting for server public key.
dev.myurl.com: Received server public key (768 bits) and host key (1024 bits).
dev.myurl.com: Host '10.0.0.21' is known and matches the host key.
dev.myurl.com: Initializing random; seed file /root/.ssh/random_seed
dev.myurl.com: Encryption type: idea
dev.myurl.com: Sent encrypted session key.
dev.myurl.com: Installing crc compensation attack detector.
dev.myurl.com: Received encrypted confirmation.
dev.myurl.com: Trying rhosts or /etc/hosts.equiv with RSA host authentication.
dev.myurl.com: Server refused our rhosts authentication or host key.
dev.myurl.com: No agent.
dev.myurl.com: Trying RSA authentication with key 'root@dev.myurl.com'
dev.myurl.com: Remote: Bad file modes for /root
dev.myurl.com: Server refused our key.
dev.myurl.com: Doing password authentication.



Sponsored Link
Ads by Google

Response Number 1
Name: K Black
Date: May 12, 2003 at 13:44:30 Pacific
Reply:

Make sure your hosts key files are chmod 600

~K Black


0
Reply to Message Icon

Related Posts

See More


Error with config script ... Problems with RealPlayer



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Cannot get SSH to work w/o password

Need help getting modem to work w/ Linux! www.computing.net/answers/linux/need-help-getting-modem-to-work-w-linux/178.html

ssh not working on new systems www.computing.net/answers/linux/ssh-not-working-on-new-systems/28499.html

Getting DPMS to work on X www.computing.net/answers/linux/getting-dpms-to-work-on-x/16966.html