How to respond to password prompt when using SCP in a shell script?

后端 未结 12 1180
旧巷少年郎
旧巷少年郎 2020-12-16 19:21

First of all, I am well aware of that there are many of questions regarding this topic. I have read them, but still could figure out an appropriate answer for my situation.<

12条回答
  •  一向
    一向 (楼主)
    2020-12-16 19:37

    Why not just use the "-r" option to copy it recursively? Or use rsync instead?

    You could also use public key authentication, which requires no help on their end as long as you have an actual user account. See this

提交回复
热议问题