[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh not working



Jim Lynch wrote:

> I've never been able to get ssh to work on a Linux box.  I just upgraded
> to Woody and have tried again.  I'm trying to connect to a Red Hat box
> with ssh.  I generated a key and I have the identity and identity.pub
> files in .ssh on the Debian system.  I logged in to the RedHat system
> and placed the key in the .ssh/authorized_keys.  When I attempt to ssh
> to that system, it always asks me for a password.  Is there a log
> somewhere that might tell me what is failing?
> 
> In going the other way, I get "Secure connection to <server> refused".
> 
> This thing is too secure.  It's unusable..
> 
> Thanks for any advice.

I use ssh between Debian and Red Hat 7.x boxes all the time without
difficulty. I do remember having a bit of trouble getting passwordless
logins (with RSA keys using ssh protocol v2) working right.

I think the problem is that you're using ssh servers and clients that
support and default to ssh v2, but your keys are for ssh v1. Read the
man page for ssh-keygen for details, but "ssh-keygen -t rsa" should make
a v2 key for you and put it in the right local files. On the remote
side, your v2 key will probably need to go in ~/.ssh/authorized_keys2.

Or, you could simply tell your ssh client to use only ssh v1, but that's
less secure than v2.

If that doesn't work, try running your ssh client in debug mode (ssh
-vvv) to see what's going on in the client/server negotiations.

Craig

Attachment: pgpmNYbaqZ3Lw.pgp
Description: PGP signature


Reply to: