Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

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 logs

more /var/log/secure

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





  • No labels