You are not logged in.

#1 2011-03-07 22:03:01

Jeager
Member
Registered: 2010-05-16
Posts: 9

hosts.allow & ssh

Hi there
My current hosts.allow contain the following line :
sshd: 192.168.0.XXX

I want to be able to use it at work with my laptop so can I had a second line like :
sshd: myISPip or sshd: myMACaddress or something like that ? (I don't want to use :ALL)

Offline

#2 2011-03-07 22:21:03

hexanol
Member
From: Canaduh
Registered: 2009-08-04
Posts: 95

Re: hosts.allow & ssh

man hosts.allow:

...
       ·      All other lines should satisfy the following format, things between [] being optional:

                 daemon_list : client_list [ : shell_command ]
...
       client_list  is  a list of one or more host names, host addresses, patterns or wildcards (see below) that will be matched
       against the client host name or address.
...
       List elements should be separated by blanks and/or commas.

So what about something like "sshd: 192.168.0.1 192.168.0.2" ?

Offline

#3 2011-03-07 22:30:42

Jeager
Member
Registered: 2010-05-16
Posts: 9

Re: hosts.allow & ssh

I wasnt sure about the syntax thx, as for the mac address is that possible ?

Offline

#4 2011-03-08 00:18:23

hexanol
Member
From: Canaduh
Registered: 2009-08-04
Posts: 95

Re: hosts.allow & ssh

You still haven't learned that you should be able to find such answer in the hosts.allow manual page ?

For MAC address, the answer is no.

Offline

#5 2011-03-09 09:06:39

Jeager
Member
Registered: 2010-05-16
Posts: 9

Re: hosts.allow & ssh

It's ok now but I have some comprehension problems (english is not my native tongue)

Thx smile

Offline

Board footer

Powered by FluxBB