手上有一台12.4的ios機器,通過SecureCrt可以ssh上去,但是每次連接配接的時候都會報“Keyboard Interactive”錯誤,skip即可,但是通過ssh用戶端連接配接,卻無法正常連接配接,錯誤提示如下:
@127.0.0.1: Permission denied (publickey,password,keyboard-interactive)
開始以為是Keyboard Interactive互動的問題,
通過sshd -T | grep kbd檢視結果:
~ root# sshd -T | grep kbd
kbdinteractiveauthentication yes
确實是開着的,一番谷歌後,修改/etc/ssh/sshd_config的配置檔案
# Change to no to disable s/key passwords
ChallengeResponseAuthentication no
然後重新開機sshd服務
iPhone:~ root# launchctl stop com.openssh.sshd
iPhone:~ root# launchctl start com.openssh.sshd
再次檢視sshd -T | grep kbd,發現已經是no了,測試Crt連接配接,已經可以直連不會彈框了,高興的用ssh連接配接,還是被拒,提示如下:
@127.0.0.1: Permission denied (publickey,password).