login with no passwrod not working...sometimes - SSH

This is a discussion on login with no passwrod not working...sometimes - SSH ; 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. ...

+ Reply to Thread
Results 1 to 4 of 4

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

  1. login with no passwrod not working...sometimes

    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.

    I'm guessing there may not be a ready answer, but I am open to a list
    of the most common stupid things people do with ssh clients for this
    type of thing.

    Thanks.

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

    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.
    >
    > I'm guessing there may not be a ready answer, but I am open to a list
    > of the most common stupid things people do with ssh clients for this
    > type of thing.


    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?

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

    On Dec 29, 5:47*pm, Nico Kadel-Garcia 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.

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

    On 30 Dec, 17:40, dave64 wrote:
    > On Dec 29, 5:47*pm, Nico Kadel-Garcia 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 fora
    > > > 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 checkthe 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.

+ Reply to Thread