Unable to use key file (PuTTY SSH-2 private key)

Unable to use key file (PuTTY SSH-2 private key)

Post by miten.meht » Fri, 06 Jun 2008 21:45:46



I now ran PuttGen and selected radio button SSH-1 (RSA) . Then I
generated keys. I copied text box public key content to .ssh/
authorized_keys. I pointed the AUTH box use new private key. I still
have following error.

Sent username "mitenm"
Trying public key authentication.
No passphrase required.
Server refused our public key.
mitenm@msimldevny2's password:
 
 
 

Unable to use key file (PuTTY SSH-2 private key)

Post by Simon Tath » Fri, 06 Jun 2008 22:19:47


[...]

Well, that's a step forward: at least PuTTY is now at least _trying_
to offer the key to the server, and the server is refusing it at the
next stage.

This error usually means that you haven't set up the configuration
on the server correctly. Have you checked:

- that .ssh/authorized_keys is not group-writable, or otherwise
writable by any user on the system other than yourself?
- that the .ssh directory and your home directory are likewise
writable only by you?
- that when you pasted the public key into .ssh/authorized_keys you
did not add any line breaks by mistake?

--
Simon Tatham "I thought I'd put my foot so far into my mouth I
< XXXX@XXXXX.COM > wouldn't be able to sit down without standing up."

 
 
 

Unable to use key file (PuTTY SSH-2 private key)

Post by miten.meht » Fri, 06 Jun 2008 23:12:46


I locked down my home dir and .ssh and its contents.

Here are both AFS acl rights and unix rights for .ssh dir and its home
dir.

pa936c1n5>fs la .
Access list for . is
Normal rights:
system:anyuser rl
vmsadmin rlidwka
mitenm rlidwka
/ms/user/m/mitenm/.ssh
pa936c1n5>ls -l
total 467
-rw------- 1 mitenm cc5254 818 Jun 5 08:38
authorized_keys
-rw------- 1 mitenm cc5254 616 Jun 5 04:43
id_dsa_public.txt
-rw------- 1 mitenm cc5254 887 Jun 5 04:53 id_rsa
-rw------- 1 mitenm cc5254 226 Jun 5 04:53 id_rsa.pub
-rw------- 1 mitenm cc5254 883 Jun 5 01:49 key
-rw------- 1 mitenm cc5254 17161 Jun 5 04:47 known_hosts
-rw------- 1 mitenm cc5254 454656 Jun 5 04:57 putty.exe
-rw------- 1 mitenm cc5254 512 Jun 5 04:46 random_seed
/ms/user/m/mitenm/.ssh

/ms/user/m/mitenm
pa936c1n5>fs la .
Access list for . is
Normal rights:
system:anyuser rl
vmsadmin rlidwka
mitenm rlidwka
/ms/user/m/mitenm

Also authorized_keys in vi will jump line for who key while going down
so it does not have any line breaks added while copying.

Here is error now:
Sent username "mitenm"
Trying public key authentication.
No passphrase required.
Server refused our public key.
mitenm@msimldevny2's password: