Thursday, October 04, 2012

How to restrict ssh login by ip address

SSH restriction can be accomplished in below two files.

1.    /etc/hosts.allow

Example:
sshd: 1.2.3.0/255.255.255.0  sshd: 192.168.0.0/255.255.255.0

2.    /etc/hosts.deny

Example:
sshd: ALL

The access control software consults the above two files.   Search stops at the first match.

5 comments:


  1. Thank you very much for your information.
    Australia ETA/eVisitor Visa
    is quiet easy to apply online from Singapore,
    Malaysia, United Kingdom, United States, Canada, France and including all others ETA Eligible Countries from our website.

    ReplyDelete
  2. Dubai city tour is all about remarkable transformation – from a small pearl village to a world class epicenter of 5 star experiences – that is Dubai, UAE’s pride! Over the years Dubai has become the leading destination for holidays around the world. It has to be; with so many attractions and beautiful sandy beaches to claim, no wonder that millions flock to this city to see what it’s about. Take a city tour Dubai and experience for yourself.
    Dubai city tour

    ReplyDelete
  3. Hatta Trip is a desert safari with mountain driving along the valleys of the Hajjar Mountains beside the Oasis of Hatta. We pick up the tourists by 4WD vehicles at 8.30 Hrs, pass through Al Aweer and drive through the Golden sand dunes towards the Oasis of Hatta. Enroute we have enough opportunity to see the Desert life including few of the Bedouin tents and grazing camelsHatta tour

    ReplyDelete
  4. Abu Dhabi is the largest of the seven Emirates and the Federal capital of the United Arab Emirates. Abu Dhabi is best known for its culture & heritage; one of the most progressive and pioneering spots, being ranked as the world’s richest city.abu dhabi city tour

    ReplyDelete