Re: login with no passwrod not working...sometimes



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.
.



Relevant Pages

  • Re: New User Not in GAL, Recipient Policy Not Applied
    ... Run setup /forestprep and setup /domainprep on the server to re-configure ... Exchange schema. ... Reboot the SBS server. ... looking at the permissions the Exchange Enterprise Servers ...
    (microsoft.public.windows.server.sbs)
  • Re: Help needed with server setup at work
    ... Greg Folkert wrote: ... good SSH practices, there is really no additional server-side setup you ... With properly setup homedirs nothing needs to be worried ... What about them poking around on the server setup? ...
    (Debian-User)
  • Re: Urgent - Access denied problem
    ... > permissions had been reset to Administrator - empty access and SYSTEM ... I was very lucky that the server would even boot. ... > It seems that applying the Setup Security.inf template as Microsoft ...
    (microsoft.public.windows.server.sbs)
  • Re: How to setup a headless machine
    ... >>I'm going to setup a third linux box in my room, ... >thought I would also point out that you can run X applications remotely ... >by tunneling them over SSH. ... cannot connect to X server'. ...
    (Fedora)
  • RE: Remote Keyboard and mouse
    ... I am a total newbie to Linux. ... Last night I just setup and configured my ... Gnome will operate thru SSH. ... One is to setup my server on a shelf ...
    (RedHat)