Ssh configuration: Difference between revisions

From wiki
Jump to navigation Jump to search
imported>Jawadmin
No edit summary
imported>Jawadmin
No edit summary
Line 1: Line 1:
<hr><p style="text align:left;">
<hr><p style="text align:left;">
Return [[Main Page]]
Return [[Freebsd Knowledge Base]]
<span style="float:right;">
<span style="float:right;">
Next [[ssh configuration]]
Next [[Net-snmp configuration]]
</span></p><hr>
</span></p><hr>



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