authorized_keys driving me nuts

5 posts / 0 new
Last post
designdream
Offline
Last seen: 14 years 10 months ago
Joined: 01.05.2008 - 21:33
authorized_keys driving me nuts

I've used authorized_keys for years now and have never had a problem with it on multiple platforms.
I recently installed copssh on win3k and love it to death except I can't get it the authorized keys to work.

I added the same authorize_keys file that i use throughout all the servers and still get prompted for a password. I've chmod 777 to it and all.

I noticed that the sshd_config had the authorized_keys commented out

so i turned on

RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys

its still not working...
Is there something else I have to do?

itefix
Offline
Last seen: 4 hours 31 min ago
Joined: 01.05.2008 - 21:33
Re: authorized_keys driving me nuts

Try following:

  1. Activate your user again.
  2. Copy your authorized_keys to copssh server
  3. Start a Bash shell
  4. cat your authorized_keys >> /home/user/.ssh/authorized_keys (NB! don't replace existing authorized_keys, just concatenate yours' to it)
designdream
Offline
Last seen: 14 years 10 months ago
Joined: 01.05.2008 - 21:33
Re: authorized_keys driving me nuts

You are by far my greatest hero~!!!!! i'd buy you a beer if you lived here.

designdream
Offline
Last seen: 14 years 10 months ago
Joined: 01.05.2008 - 21:33
Re: authorized_keys driving me nuts

I wanted to change my homedir to /cygdrive/d/ in the passwd.authorized_keys doesn't work after doing so.

I've copied the .ssh over to it and it didn't work
I also went through and set the directory permissions and ownership just as the activateuser script does.

Is there something I would have to do to have an alternate home directory?

itefix
Offline
Last seen: 4 hours 31 min ago
Joined: 01.05.2008 - 21:33
Re: authorized_keys driving me nuts

Well, this is a little bit more complicated. I suggest to make a shortcut/symbolic link from your original directory to /cygdrive/d.

Topic locked

Release news