Allow Or Deny SSH Access To A Particular User Or Group In Linux

Allow Or Deny SSH Access On Linux

6 Responses

  1. MyDisqussion says:

    It would also be good to mention tcpwrappers, which can be used to restrict ssh (and other protocols). This can prevent unauthorized IP addresses from even touching the ssh service on the remote machine.

  2. sk says:

    Cheers mate! I’m really glad that you find this blog useful.

  3. Milofi says:

    Hey There
    Its an old post, ….but when i disable all of a group and enable one single user in this group, can i access to it or not?
    and… what would you recommend for an login/edit method to change server files?

  4. aviso says:

    I screwd up my ssh access with these instructions for root, now I cannot ssh, and cannot open the file through CWP in root, CWP has a terminal using Java on the browser and at the moment I try to open the file, the shell freezes on some system call deadlock I would imagine, any sugestions??

    • sk says:

      If it is physical server, try to boot into rescue or emergency mode and try to undo all the changes you made earlier. If it is a remote or vps system, you might need to ask your hosting provider’s help.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.