OpenSSH server installation

From Cnwiki

Jump to: navigation, search

The following is a transcript of commands to set up the OpenSSH server on ubuntu 14.04.1 LTS server:

~$ sudo apt-get install openssh-server # install package
~$ sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.factory-defaults # backup original config
~$ sudo chmod a-w /etc/ssh/sshd_config.factory-defaults # write protect backup
~$ sudo editor /etc/ssh/sshd_config # Disable password protection (See diff below)
~$ diff /etc/ssh/sshd_config.factory-defaults /etc/ssh/sshd_config
52c52
< #PasswordAuthentication yes
---
> PasswordAuthentication no
kidmose@radagast:~$ sudo service ssh restart # restart service to apply changes
Personal tools