Ssh configuration: Difference between revisions
Jump to navigation
Jump to search
imported>Jawadmin No edit summary |
imported>Jawadmin No edit summary |
||
| Line 16: | Line 16: | ||
ChallengeResponseAuthentication no # changed to force key auth. only | ChallengeResponseAuthentication no # changed to force key auth. only | ||
UsePAM no # << Changed to set ssh key authorization only | UsePAM no # << Changed to set ssh key authorization only | ||
<hr><p style="text align:left;"> | |||
Return [[Freebsd Knowledge Base]] | |||
<span style="float:right;"> | |||
Next [[Net-snmp configuration]] | |||
</span></p> | |||
Revision as of 15:31, 23 December 2018
Return Freebsd Knowledge Base Next Net-snmp configuration
Enable encrypted ssh authentication
$ mkdir ~/.ssh $ chmod 700 ~/.ssh
Copy public keys from another host
$ vim ~/.ssh/authorized_keys
Force key authentication only
$ sudo vim /etc/ssh/sshd_config PermitRootLogin no # << Changed to prohibit root login over ssh PasswordAuthentication no # << This toggles the ssh key only authorization ChallengeResponseAuthentication no # changed to force key auth. only UsePAM no # << Changed to set ssh key authorization only
Return Freebsd Knowledge Base Next Net-snmp configuration