Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

https://linux.die.net/man/8/useradd

...

useradd xxxx




passwd xxxx




sudo permission

usermod -aG wheel xxxxxx
Allow user to SSH

sshd_config


superuser accountCentos

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 logsmore /var/log/secure