摘要: https://www.chenyudong.com/archives/ssh-public-key-authentication-refused.html 搞一个ssh的密钥登录,结果发现就是无法使用密钥登录,非让我输入密码。苦恼。 输入ssh连接代码 ssh -i private.key -v 阅读全文
posted @ 2021-09-01 11:13 紫电清霜 阅读(310) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/Peter2014/p/8342495.html 问题:while read line 中使用ssh只能读取一行? 1 2 3 4 5 6 #!/bin/sh while read line do echo $line ssh root@$line " 阅读全文
posted @ 2021-09-01 10:19 紫电清霜 阅读(27) 评论(0) 推荐(0) 编辑