Re: login with no passwrod not working...sometimes
- From: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
- Date: Sun, 30 Dec 2007 11:41:21 -0800 (PST)
On 30 Dec, 17:40, dave64 <d...@xxxxxxxx> wrote:
On Dec 29, 5:47 pm, Nico Kadel-Garcia <nka...@xxxxxxxxx> wrote:
dave64 wrote:
I searched and found a way to do ssh logins without using a password.
I followed the instructions, and it works great. Now, I am trying to
setup another user on different client computer to log into the same
server. No matter what I try I keep getting prompted for a password..
I setup another user on the same client machine I used at first and
went throught the same process of ssh-keygen -t, scp'ing id_dsa.pub up
to the server and appending it to the appropriate authorized_keys
file in the .ssh directory. This doesn't work as I get prompted for a
password. I have tried this with 3 different user accounts and it
fails for all of them. Yet and ssh my_server_name from the original
account that I setup still works without a password.
All of the computers in question are running FC-6.
Could be any number of issues. The permissions could be wrong on the user's .ssh directory or their authorized_keys file, for example. Can you check the ownership and permissions on those?- Hide quoted text -
- Show quoted text -
I re-checked and did find some things. First, I'm not sure why, but
I see some direcetions was 600 for .ssh, I used 700 and that works for
me. All of the files in .ssh seemed to have correct permissions on
the client and the server. I did notice two things, and I changed
them both.
1. The permissions on the home directories for the accounts that I
could not log into without a password were 770 (nothing I changed or
setup intentionally). I changed these to the typical 755.
2. On one of the accounts that did not work on the server, I saw
id_rsa and id-rsa.pub, but not the dsa files that were in the .ssh
directories everywhere else. Just for grins I did an ssh-keygen -t.
As of now, things are working like they should.- Hide quoted text -
- Show quoted text -
Happy to help. sometimes people do silly things with permissions to
allow sharing that are awkward to clear up after, and it's pretty
important to keep people from modifying your authorized_keys, so SSH
does check these permissions in its normal server setups.
.
- References:
- login with no passwrod not working...sometimes
- From: dave64
- Re: login with no passwrod not working...sometimes
- From: Nico Kadel-Garcia
- Re: login with no passwrod not working...sometimes
- From: dave64
- login with no passwrod not working...sometimes
- Prev by Date: Re: login with no passwrod not working...sometimes
- Next by Date: Re: sftp and directory group writable
- Previous by thread: Re: login with no passwrod not working...sometimes
- Next by thread: cygwin open-ssh passphrase
- Index(es):
Relevant Pages
|
|