To add any user to do ssh login in Linux

Edit (as root) /etc/ssh/sshd_config. Append the following to it:
Port 1234
PermitRootLogin no
AllowUsers testusr





It will permit root user to login ssh but only allow the  "testusr" to login ssh.
If you want allow root ,




PermitRootLogin yes


Then restart ssh


service ssh restart





info site

Phasellus facilisis convallis metus, ut imperdiet augue auctor nec. Duis at velit id augue lobortis porta. Sed varius, enim accumsan aliquam tincidunt, tortor urna vulputate quam, eget finibus urna est in augue.

No comments:

Post a Comment