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


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!

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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