Ssh configuration: Difference between revisions
Jump to navigation
Jump to search
imported>Jawadmin No edit summary |
imported>Jacob No edit summary |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<hr> | |||
<p style="text align:left;">Return [[Build Custom Kernel]] | |||
<span style="float:right;">Next [[Net-snmp configuration]]</span></p> | |||
<hr> | |||
Enable encrypted ssh authentication | Enable encrypted ssh authentication | ||
$ mkdir ~/.ssh | $ mkdir ~/.ssh | ||
| Line 10: | Line 15: | ||
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 [[Build Custom Kernel]] | |||
<span style="float:right;">Next [[Net-snmp configuration]]</span></p> | |||
<center> Up [[Freebsd Knowledge Base]]</center> | |||
<hr> | |||
Latest revision as of 11:58, 12 January 2020
Return Build Custom Kernel 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 Build Custom Kernel Next Net-snmp configuration