DigiCrime
05-25-2004, 12:49 PM
I'm reading up on this and I guess im not doing something right. Six days a week I have to log in and out of 40 linux machines and it would be faster if I could automate my login. Works just fine on linux, Im on windows XP for the time being, Im using PuTTy Key Generator, I copy the public key into authorized_keys2, save the private key and tell putty which private key to load but I still get asked for a login and password. What am I not doing right :o
zupanm
05-25-2004, 01:12 PM
check the permissions on your authorized_keys2 file.. also call it authorized_keys and see if that works.. it should be chmod 600. I also had some issues with RSA vs DSA.. so try the 3 options and one will work if you have the correct permissions
DigiCrime
05-25-2004, 01:32 PM
hmm ok now were getting somewhere :D
login as: root
Sent username "root"
Trying public key authentication.
Key is of wrong type (PuTTY SSH2 private key)
dont work still im using SSH 2 do I have to put the public key in authorize_keys or authorized_keys2 ? or can it be in both?
zupanm
05-25-2004, 01:50 PM
what kind of key did you generate?
DigiCrime
05-25-2004, 02:07 PM
Public Key using Putty-gen
zupanm
05-25-2004, 02:16 PM
i mean the settings in puttyGen.. like dsa rsa v1 or v2
zupanm
05-25-2004, 02:24 PM
try to create a key in dsa.. and then add that into the authorized_keys and keys2 file and see what happens
zupanm
05-25-2004, 02:59 PM
are you sure everything is one one line in your authorized_keys file? check the permissions on the .ssh dir also
zupanm
05-25-2004, 03:29 PM
are you loading the dsa private key in putty?
microsol
05-26-2004, 04:58 AM
PermitRootLogin yes
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication no
PermitEmptyPasswords no
X11Forwarding yes
Compression yes
...other options...