Can't ssh with no password between Red Hat Enterprise and Red hat 7.0

Can't ssh with no password between Red Hat Enterprise and Red hat 7.0

Post by peterhardi » Sat, 26 Jan 2008 01:26:59


Hi, I never have a problem setting up ssh between Red Hat servers so
it doesn't prompt for a password using "ssh-keygen -t rsa", but I
cannot get it to work between Red Hat Enterprise 3 and Red Hat 7.0.
This is what I have done so far:

On Red Hat Enterprise 3:
1. ssh-keygen -t rsa (didn't use a passphrase)
2. copied id_dsa.pub to Red Hat 7.0 server and renamed it
"authorized_keys"
3. tried ssh to the Red Hat 7.0 server, it prompted me for a password

On Red Hat 7.0 (didn't get ver far):
1. ssh-keygen -t rsa (didn't work as -t was not a valid option)
2. ssh-keygen (didn't use a passphrase)
3. copied "identity.pub" to Red Hat Enterprse 3 server and renamed it
"authorized_keys"
4. tried ssh to Red Hat Enterprise 3 server and it prompted me for a
password

I guess this is something to do with the older server using v1 of SSH
rather than v2?

How can I make this work?

Many thanks,
Pete.
 
 
 

Can't ssh with no password between Red Hat Enterprise and Red hat 7.0

Post by Richard E. » Sat, 26 Jan 2008 04:53:18

>>>>> "PH" == peterharding < XXXX@XXXXX.COM > writes:

PH> Hi, I never have a problem setting up ssh between Red Hat servers
PH> so it doesn't prompt for a password using "ssh-keygen -t rsa", but
PH> I cannot get it to work between Red Hat Enterprise 3 and Red Hat
PH> 7.0. This is what I have done so far:

PH> On Red Hat Enterprise 3: 1. ssh-keygen -t rsa (didn't use a
PH> passphrase) 2. copied id_dsa.pub to Red Hat 7.0 server and renamed
PH> it "authorized_keys" 3. tried ssh to the Red Hat 7.0 server, it
PH> prompted me for a password

Regarding the use of plaintext keys, consider using ssh-agent instead:
http://www.yqcomputer.com/

PH> On Red Hat 7.0 (didn't get ver far): 1. ssh-keygen -t rsa (didn't
PH> work as -t was not a valid option) 2. ssh-keygen (didn't use a
PH> passphrase) 3. copied "identity.pub" to Red Hat Enterprse 3 server
PH> and renamed it "authorized_keys" 4. tried ssh to Red Hat
PH> Enterprise 3 server and it prompted me for a password

PH> I guess this is something to do with the older server using v1 of
PH> SSH rather than v2?

The identity.pub file indicates an SSH1-only key, so if you're using
protocol 2 this could certainly be a problem.

PH> How can I make this work?

PH> Many thanks, Pete.

Post the output of a ssh -vv run; also review:
http://www.yqcomputer.com/

--
Richard Silverman
XXXX@XXXXX.COM

 
 
 

Can't ssh with no password between Red Hat Enterprise and Red hat 7.0

Post by Nico Kadel » Sat, 26 Jan 2008 09:59:25


For one thing, update to at least RedHat 7.3. People stopped
publishing updates for 7.0 a long, long, long time ago, and even
RedHat 7.3 is pretty darned dead. But you have a better chance of
having a fully functional system with it.

If you don't have the media to update it, send me a note, I can get
you a copy of one of the last FedoraLegacy repositories.