sshd version:
產生 ssh key
ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
登入卻需要密碼:
hduser@hadoop:~/.ssh$ ssh hduser@hadoop
hduser@hadoop's password:
解決方式:
server :
# vi /etc/ssh/sshd_config
加入 PubkeyAcceptedKeyTypes=+ssh-dss
重啟 ssh
# /etc/init.d/ssh restart
client:
新增 config 檔
# vi ~/.ssh/config
加入 PubkeyAcceptedKeyTypes=+ssh-dss
重新執行,即可不用密碼就登入主機
# ssh hduser@hadoop
參考資料:https://superuser.com/questions/1016989/ssh-dsa-keys-no-longer-work-for-password-less-authentication?lq=1