Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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: – jmetz Jul 23 '12 at 18:44
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


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.