Friday, March 5, 2010

Linux :: Adding User

To add a person outside U,
$ adduser <username>

- enter a temporary password
- enter other details

To provide SSH access to user, add the username in sshd_config file
$ vim /etc/ssh/sshd_config
go to the line saying 'AllowUsers' and add user
AllowUsers root
<username>

restart the sshd daemon
$ /etc/init.d/ssh restart

CHECK:
Login using the username and password, to check whether is works

ERROR:
- check the log file in /var/log/auth.log

No comments:

Post a Comment