![透過酪梨醬登入本地 SSH shell](https://rvso.com/image/1654757/%E9%80%8F%E9%81%8E%E9%85%AA%E6%A2%A8%E9%86%AC%E7%99%BB%E5%85%A5%E6%9C%AC%E5%9C%B0%20SSH%20shell.png)
所以我想使用酪梨醬來訪問127.0.0.1 ssh shell。
我已停用純文字密碼驗證和 root 登入。使用私人的我的正常 ssh 會話。
有沒有辦法允許使用 sshd 配置中的密碼對本地主機登入進行身份驗證?
謝謝!
答案1
在區塊中重新啟用它Match
。
PasswordAuthentication no
ChallengeResponseAuthentication no
Match Address ::1
PasswordAuthentication yes
Match Address 127.0.0.1
PasswordAuthentication yes