Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

On Ubuntu, I often need to ssh to a server. How can I setup my ssh in my ubuntu so that I don't need to enter my password everytime I ssh to that server?

Thank you.

share|improve this question
    
Duplicate: superuser.com/questions/271107/passwordless-ssh –  jmetz Jul 23 '12 at 18:44

1 Answer 1

up vote 2 down vote accepted

Most Ubuntu desktops will start an SSH Agent for you automatically. So you should really be looking at using agent based authentication. Basically you create a keypair, and publish an SSH key to the remote system, and on the local system use ssh-add to make Ubuntu recognize your key for a given session.

  • Generate a keypair with ssh-keygen.
  • Copy your public key to remote systems with ssh-copy-id.
  • Add your private key to the agent with ssh-add.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.