Find the answer to your Linux question:
Results 1 to 3 of 3
How can you lock down SSH to a single IP or range of IPs...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2008
    Posts
    4

    How to lock down SSH


    How can you lock down SSH to a single IP or range of IPs

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Check out the Match parameter in the SSHD config manpage (man sshd_config).

    You can also block SSH connections using tcp_wrappers (man hosts.deny, man.hosts.allow).

    You're safest implenting a firewall and using that to drop connections before they even get to the ssh daemon, though.

  3. #3
    Just Joined!
    Join Date
    Sep 2011
    Posts
    2
    You can install an application called "firestarter" - it's a very useful tool that allows you to add rules exactly like that of what you're looking for. I did this exact thing on my install so only my netbook could get into my desktop.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •