https://linux.die.net/man/8/useradd
...
useradd xxxx | |
---|---|
passwd xxxx | |
sudo permission | |
usermod -aG wheel xxxxxx | |
Allow user to SSH | |
sshd_config | |
superuser account | Centos |
visudo search for: in vi: /ALL=(ALL) copy the "root" line with the new account name xxxxx ALL=(ALL) ALL |
loging logs | |
---|---|
lastlog | |
last | |
grep sshd /var/log/audit/audit.log | |
failed logs | more /var/log/secure |