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

[jkriker@jnpr-ssr-router-vm ~]$ groups
jkriker wheel
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 logs

more /var/log/secure

cat /var/log/secure | grep 'sshd'