You are not logged in.

#1 2013-04-08 01:10:24

GRem
Member
From: Asunción
Registered: 2010-08-20
Posts: 31

[SOLVED]SSH fine-tuning

Hello there.

I've recently installed Arch in an old system I had, with the 2013 install medium.

The system is now functional and works quite well. I now want to start the ssh server but I want to configure it so that it only allows local connections. Previously, I did that through the hosts.allow file, but that doesn't exist anymore.

I've been thinking of an iptables rule for this purpose. Would that work, or is there another recommended method?

Thanks in advance.

Last edited by GRem (2013-04-08 03:25:08)

Offline

#2 2013-04-08 01:47:14

oliver
Member
Registered: 2007-12-12
Posts: 433

Re: [SOLVED]SSH fine-tuning

I think you can use the AllowUsers keyword in /etc/ssh/sshd_config

AllowUsers *@192.168.*.*

etc

Offline

#3 2013-04-08 02:45:51

Kilzool
Member
From: Ireland
Registered: 2010-08-04
Posts: 228

Re: [SOLVED]SSH fine-tuning

Look at 'man sshd_config'

There is also a ListenAddress.

Offline

#4 2013-04-08 03:24:44

GRem
Member
From: Asunción
Registered: 2010-08-20
Posts: 31

Re: [SOLVED]SSH fine-tuning

Oh, that seems a lot easier and convenient.

I'll carry on with the config now, thanks!

Offline

Board footer

Powered by FluxBB