Embedding the Password in the Bash Script

前端 未结 3 1820
闹比i
闹比i 2020-12-22 11:28

I am running a test script where files needs to be copied to the target embedded system.But when this command of copying the files to remote target system is run from the sc

3条回答
  •  天涯浪人
    2020-12-22 12:20

    The right way to do this is with key-based authentication. Read about it here.

    If that link ever breaks, just google it: "ssh passwordless" or "ssh key authentication". Despite Toby's comment, I think linking to or instructing how to search it yourself is better than repeating what others can say better and in more depth than I can.

提交回复
热议问题