DEV Community

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

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