create a new account, allow sudo permission useradd testuser
passwd testuser
vi /etc/sudoers
1 2 3 ## Allow root to run any commands anywhere root ALL=(ALL) ALL testuser ALL=(ALL) ALL 1 2 ## Same thing without a password testuser ALL=(ALL) NOPASSWD: ALL chage logon port vi /etc/ssh/sshd_config
firewall-cmd –permanent –zone=public –add-port=8822/tcp
firewall-cmd –reload
iptables -A INPUT -p tcp –dport 8822 -j ACCEPT
service sshd restart
disable root login vi /etc/ssh/sshd_config
why do we need a vps As a programmer, learning VPS is same as learning a development language.
It’s important to understand linux, network, system os fully.