偶然发现ps aux能看到我的密码,welly直接密码登录是明文传写在ssh命令里的
我现在的配置是:
1. 配置一下welly管理私钥的文件,避免反复复制
.ssh/config
Host bbs.newsmth.net ssh.newsmth.net
IdentityFile ~/Library/Containers/com.ytang.Welly/Data/.ssh/id_ed25519
IdentitiesOnly yes
2. 在水木配置公钥登录。执行下面的命令把私钥复制出来粘贴进去,粘贴到密码
printf "%s\n" "$(cat ~/.ssh/id_ed25519)" | pbcopy
--
FROM 115.171.216.*