DEV Community

Discussion on: How I setup my Digital Ocean Ubuntu 20.04 Server?

Collapse
 
cescquintero profile image
Francisco Quintero 🇨🇴

Great article, thanks for sharing!

In a next article you might one to share how to change the default port (22) to something more secure like 34982

Collapse
 
sakko profile image
SaKKo

Ok, I will add this.

sudo vi /etc/ssh/sshd_config

Change Port 22 to the port you want.

Restart SSH sudo service ssh restart and then to SSH, use

ssh -i ~/.ssh/ssh_key root@server_ip -p PORT