且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Bash脚本中嵌入密码

更新时间:2023-12-05 19:25:22

正确的方法是使用基于密钥的身份验证. 了解它这里.

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

如果该链接曾经中断,只需在Google上搜索它即可:"ssh无密码"或"ssh密钥身份验证".尽管有Toby的评论,但我认为自己链接或指导如何进行搜索比重复别人可以说的更好,更深入的内容要好.

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.