Create a new user with /usr/bin/rssh
Login as the root user
open the terminal and create a new user called linux
# useradd -m -d /home/linux -s /usr/bin/rssh linux
# passwd linux
Change existing user shell to /usr/bin/rssh
# usermod -s /usr/bin/rssh old-user-name
# usermod -s /usr/bin/rssh war
# chsh -s /usr/bin/rssh war
Try login via ssh or sftp
Now try login via ssh or sftp using username linux:
$ sftp linux@aspx-deskto.com or sftp linux@192.168.1.230
Now you will get the result like this

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
This account is restricted by rssh.
This user is locked out.
If you believe this is in error, please contact your system administrator.
Connection to 192.168.1.230 closed.
No comments :
Post a Comment