Find the answer to your Linux question:
Results 1 to 3 of 3
Just for starters: I'm a true linux noob, so please be kind and thorough in your answers. I have two computers running (different versions of) Scientific Linux. I wanted to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2013
    Posts
    3

    passwordless scp not working


    Just for starters: I'm a true linux noob, so please be kind and thorough in your answers.

    I have two computers running (different versions of) Scientific Linux. I wanted to set up passwordless scp between them and followed one of the many guides I found on google.
    Code:
    ssh-keygen -t rsa
    scp ~/.ssh/id_rsa.pub usernameAThostname:/home/username/.ssh/myguest_id_rsa.pub
    cat myguest_id_rsa.pub >> ~/.ssh/authorized_keys
    chmod 600 ~/.ssh/authorized_keys
    Now, it works just fine in one of the directions but in the other I constantly get prompted for a password. I've tried googling for answers, but the same steps as in the guide keep surfacing.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,577
    Scp is a version of ssh. Look at your /etc/ssh/sshd_config file on the system that is requiring the password. Compare that to the other. You will probably find that there is a configuration issue you missed.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Sep 2012
    Posts
    4
    Just to check, you have followed the SSH key setup on both systems?

Posting Permissions

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