在 /etc/ssh/sshd_config 裡面加入兩段設定,再重啟 ssh server 即可。

 

1.

ChallengeResponseAuthentication yes

 

2.

Match Group operation

  AuthenticationMethods publickey,keyboard-interactive

創作者介紹
創作者 強哥的部落格 的頭像
johnchen6927

強哥的部落格

johnchen6927 發表在 痞客邦 留言(0) 人氣( 24 )