create a new account, allow sudo permission
useradd testuser
passwd testuser
vi /etc/sudoers
|
|
|
|
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
PermitRootLogin No
service sshd restart