Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

I would like to have a loop script run over two machines (with global IP), in which during the loop I have several scp command for exchanging the outputs of those executions. Do we have a way to avoid password prompt on every SCPs ? i.e., generating keys for scp, etc

share|improve this question
up vote 2 down vote accepted

yes, you can use key pairs like you do for ssh (scp ist "the same")

create a rsa key pair with no password, move/copy the public part to destination machine and enjoy!

share|improve this answer
ok then, thanks ;) – Amir Feb 9 '14 at 13:02

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.