Networking Forums

Networking Forums > Computer Networking > Linux Networking > limiting ssh access from particular host

Reply
Thread Tools Display Modes

limiting ssh access from particular host

 
 
Jemy
Guest
Posts: n/a

 
      09-13-2004, 07:45 AM
Hi all, I'm looking to restricting ssh login allowed only from a particular
host/IP address through config (not thru firewall config), where do i
configure this? I'm using openssh-3.6.1.
Thanks in advance for advice.
Jemy


 
Reply With Quote
 
 
 
 
Andreas Janssen
Guest
Posts: n/a

 
      09-13-2004, 08:29 AM
Hello

Jemy (<(E-Mail Removed)>) wrote:

> Hi all, I'm looking to restricting ssh login allowed only from a
> particular host/IP address through config (not thru firewall config),
> where do i configure this? I'm using openssh-3.6.1.


If your sshd is compiled with support for TCP wrappers, you can
configure it through /etc/hosts.allow and /etc/hosts.deny. E.g. you
could add something like

sshd: ALL EXCEPT your.allowed.ip.here

to /etc/hosts.deny.

best regards
Andreas Janssen

--
Andreas Janssen <(E-Mail Removed)>
PGP-Key-ID: 0xDC801674 ICQ #17079270
Registered Linux User #267976
http://www.andreas-janssen.de/debian-tipps.html
 
Reply With Quote
 
Baho Utot
Guest
Posts: n/a

 
      09-13-2004, 10:18 AM
On Mon, 13 Sep 2004 15:45:55 +0800, Jemy wrote:

> Hi all, I'm looking to restricting ssh login allowed only from a particular
> host/IP address through config (not thru firewall config), where do i
> configure this? I'm using openssh-3.6.1.
> Thanks in advance for advice.
> Jemy


Maybe try hosts.allow, hosts.deny
 
Reply With Quote
 
Doug O'Leary
Guest
Posts: n/a

 
      09-13-2004, 12:45 PM
On 2004-09-13, Jemy <(E-Mail Removed)> wrote:
>
> Hi all, I'm looking to restricting ssh login allowed only from a particular
> host/IP address through config (not thru firewall config), where do i
> configure this? I'm using openssh-3.6.1.
> Thanks in advance for advice.
> Jemy


If you're using public key authentication, you can set the valid source
host in the ~/.ssh/authorized_keys2 file with an initial

from="$fqdn" ssh-dsa ... normal key

If you're not using PKA, then you have to use tcp wrappers as the
other posters have suggested.

HTH;

Doug

--
--------
Senior UNIX Admin
O'Leary Computer Enterprises
(E-Mail Removed) (w) 630-904-6098 (c) 630-248-2749
resume: http://home.comcast.net/~dkoleary/resume.html

 
Reply With Quote
 
J. E. Peters
Guest
Posts: n/a

 
      09-13-2004, 05:06 PM
Doug O'Leary wrote:
> On 2004-09-13, Jemy <(E-Mail Removed)> wrote:
>
>>Hi all, I'm looking to restricting ssh login allowed only from a particular
>>host/IP address through config (not thru firewall config), where do i
>>configure this? I'm using openssh-3.6.1.
>>Thanks in advance for advice.
>>Jemy


Hi Jemy,

apart from the solutions already mentioned in this thread, you could
make use of the configeration options AllowGroups and AllowUsers inside
the file sshd_config.

Regards,

John
 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      09-13-2004, 06:10 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

In comp.os.linux.networking J. E. Peters <(E-Mail Removed)> suggested:
> Doug O'Leary wrote:


A really good suggestion!

>> On 2004-09-13, Jemy <(E-Mail Removed)> wrote:
>>
>>>Hi all, I'm looking to restricting ssh login allowed only from a particular
>>>host/IP address through config (not thru firewall config), where do i

[..]

> apart from the solutions already mentioned in this thread, you could
> make use of the configeration options AllowGroups and AllowUsers inside
> the file sshd_config.


Mh, I can't see how this should limit ssh access to a particular
host, which was in question.

--
Michael Heiming (GPG-Key ID: 0xEDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBReKBAkPEju3Se5QRAsnyAJsEjqlpiDEbCoF5w6FApH bSmBbALgCcDHzK
5/3oLFRKgbh9h6j5tWVp3eI=
=Ohbd
-----END PGP SIGNATURE-----
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Limiting Access for non-domain Laptops PLAdmin Windows Networking 1 05-25-2011 01:09 PM
Traffic shaping/limiting - per host, how? Coenraad Loubser Linux Networking 3 02-09-2005 06:31 PM
Limiting access Tom Broadband Hardware 1 10-05-2004 09:37 PM
Limiting access to network on VPN connection M.Rivard Windows Networking 0 08-31-2004 03:04 PM
Access to public host from private host through Linux router Santanu Chatterjee Linux Networking 5 11-14-2003 11:57 PM



1 2 3 4 5 6 7 8 9 10 11