Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I have been trying to establish a connection between two pcs via the ssh channel. I successfully made the connection as a root user, but when i tried as ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2010
    Posts
    1

    Unhappy Passwordless login in using ssh via non root user


    Hi, I have been trying to establish a connection between two pcs via the ssh channel. I successfully made the connection as a root user, but when i tried as a non root user i had to type in the password the make contact with the other pc. And besides this could someone tell me how exactly does this passwordless login actually work?

  2. #2
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,042
    I have not done much with ssh ... but does keychains link help?
    I think disable of root login via ssh is normally recommended.

  3. #3
    Just Joined!
    Join Date
    Nov 2007
    Posts
    71
    Hi kenpachi, i don't know whether this will help but i think its worth a try according to your question.
    You need to first generate a private-public keypair using ssh-keygen using this command
    #ssh-keygen -t dsa
    When that is done, using scp run this command which will transfer the key you generated to the other computer across
    #scp ~/.ssh/id_dsa.pub robin@remoteip:~robin/.ssh/authorized_keys
    robin is the user account you need to access, so it can be root or a local user.
    however that means that the computer you have used to scp the key, will be the only computer that will ssh without password.
    Now you can try to login to that machine using ssh. Your key, which you copied to the remote machine, will be compared against your private key to verify your authenticity.
    I hope this helps.

    Cheers R

  4. #4
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    kenpachi, you should bookmark this page

    OpenSSH Public Key Authentication

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •