• Skip to main content
  • Skip to primary sidebar

Web Development Archive

  • Archive
You are here: Home / Other / Digital Ocean SSH

Digital Ocean SSH

Create a new droplet with password

#01 – LOGIN AS ROOT

ssh root@207.154.213.152

#02 – CHECK FOR UPDATES

apt update

#03 – RUN UPDATES

apt dist-upgrade

#04 – REBOOT THE VPS

reboot

#05 – CREATE NON ROOT USER

adduser wpflames

#06 – ADD SUPER USER PERMISSION

usermod -aG sudo wpflames

#07 – LOGIN WITH NEW USER to test

ssh wpflames@207.154.213.152

#08 – GENERATE SSH KEY ON YOUR COMPUTER

logout
ssh-keygen -t rsa -b 4096 -C "info@wpflames.com"

#09 – CHANGE PERMISSIONS

mkdir .ssh
sudo chmod -R go= .ssh
sudo chown -R wpflames:$wpflames .ssh
sudo chown -R wpflames:wpflames /var/www/html/
exit

#10 – COPY THE SSH KEY TO THE SERVER

ssh-copy-id wpflames@46.101.179.210

#11 – LOGIN USING SSH KEY WITHOUT PASSWORD

ssh wpflames@207.154.213.152

#12 – SECURE SSH CONNECTION – SSH CONFIG FILE

sudo nano /etc/ssh/sshd_config

Search: Ctrl + w

PermitRootLogin no
PasswordAuthentication no
PermitEmptyPasswords no
Port 4400

#13 – SSH SERVICE RESTART

Reload the sshd service to put these changes into effect:

sudo systemctl reload sshd

#14 – SSH LOGIN PORT 4400

ssh wpflames@167.172.161.138 -p 4400

Ha a véletlenül kitiltod magad, Digital Ocean admin console-lal belépsz root-ként

Megnézzük, melyik port aktív:

ss -tl

Check php version from terminal

php --version

Filed Under: Other

About Gabor Flamich

I'm a web developer and designer based in Budapest, Hungary. In recent years, I've documented hundreds of solutions I came across during development. This site is an archive for useful code snippets on WordPress, Genesis Framework and WooCommerce. If You have any questions related to WordPress development, get in touch!

Primary Sidebar

  • angular.io
© 2026 WP Flames - All Right Reserved