Friday, August 06, 2004

SSH Configuration

I had a really tough time while trying to SSH to my Linux machine at
work which is running my company's custom version of Debian Woody. It
always died with an error saying "Permission denied (publickey).". I
tried all the usual things like cleaning up known_hosts, creating a new
key, etc, but nothing seemed to work.

Finally looking closely at the known_hosts file, I saw a DSA key for my
Linux machine there. Looks like that key of bad ... but the more
interesting thing was that my Mac was using protocol version 2 by
default. A quick change to /etc/ssh_config did the trick. I simply
added Protocol 1,2 to it and everything was fine. I could have tried
creating a DSA key myself, but I use protocol version 1 everywhere else
and didn't want to create a second key.

0 Comments:

Post a Comment

<< Home