Disable Password Authentication for SSH
페이지 정보
작성자 조희승 댓글 0건 조회 5,720회 작성일 15-10-20 20:26본문
How to Disable Password Authentication for SSH
OverviewLinux / Mac OS XPuTTY (Windows)Extra Security
Once you have SSH Keys configured, you can add some extra security to your server by disabling password authentication for SSH. (Note that if you do lose your private key, this will make the server inaccessible and you will need to contact HostGator to have this re-enabled.)
To disable this setting, you can do the following:
nano /etc/ssh/sshd_config
In this file, set the following settings to the following values. If these settings are already in the file, set them to "no" rather than add new lines.
#ChallengeResponseAuthentication no
PasswordAuthentication no # 이거만 필요함
#UsePAM no
Once this is done, restart the SSH daemon to apply the settings.
/etc/init.d/sshd restart
OverviewLinux / Mac OS XPuTTY (Windows)Extra Security
Once you have SSH Keys configured, you can add some extra security to your server by disabling password authentication for SSH. (Note that if you do lose your private key, this will make the server inaccessible and you will need to contact HostGator to have this re-enabled.)
To disable this setting, you can do the following:
nano /etc/ssh/sshd_config
In this file, set the following settings to the following values. If these settings are already in the file, set them to "no" rather than add new lines.
#ChallengeResponseAuthentication no
PasswordAuthentication no # 이거만 필요함
#UsePAM no
Once this is done, restart the SSH daemon to apply the settings.
/etc/init.d/sshd restart
댓글목록
등록된 댓글이 없습니다.