A simple notebook about AI, machine learning, deep learning, TensorFlow framework, programming, cloud computing, and networking. 一本簡單的手札關於: 機器學習, 深度學習, 人工智慧, TensorFlow平台, 程式開發, 雲端與網路.
Thursday, October 1, 2015
[SSH] To examine the Linux PAM for login mechanism
Based on Linux PAM module, we can easily configure the related pam file and use the functionality that it provides. I just examine login authentication mechanism from PAM a little bit. The scenario is like this:
I change the login authentication mechanism from key pair to password and to see what happens in /var/log/auth.log if I give the wrong password.
The value to change:
PubkeyAuthenticationyes ==> no
PasswordAuthenticationno ==> yes
$> service ssh restart After restarting ssh daemon, I give the wrong password and then I can see the error message in the log file:
The following image is for reference if everything is correct.