
所以我想使用酪梨醬來訪問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