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

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

1 Answer 1

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.