Skip to content

Instantly share code, notes, and snippets.

@danielsepulvedab
Last active April 16, 2018 20:25
Show Gist options
  • Save danielsepulvedab/265b9ea74557065426118a1def62a76d to your computer and use it in GitHub Desktop.
Save danielsepulvedab/265b9ea74557065426118a1def62a76d to your computer and use it in GitHub Desktop.
SSH configurations

Change default connection port for SSH

Open the file /etc/ssh/sshd_config and modify the line:

Port xxx

Finally restart the ssh service

sudo service ssh restart

Allow SSH password authentication

Open the file /etc/ssh/sshd_config and modify the line:

PasswordAuthentication yes

Finally restart the ssh service

sudo service ssh restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment