Jump to content

configuring openssh


Dr. Evil
 Share

3 posts in this topic

Recommended Posts

I would like to make the following changes to the default ssh configuration but am having terrible difficulty!

firstly i would like to restrict the ip addresses that can connect to my box for example 123.123.123.*

secondly, i would like to restrict the users who can connect.

i have tried editing the /etc/ssh_config file and adding:

Hosts 123.123.123.*

AllowUsers joebloggs

 

then i restart the service. when i try to ssh to localhost i get:

/etc/ssh_config: line 40: Bad configuration option: AllowUsers

/etc/ssh_config: terminating, 1 bad configuration options

 

what's more, the host restriction option has not worked cause i have tried logging in from other ip addresses and can do so!

 

I am using tiger 10.4.8. any help on this much appreciated.

Link to comment
Share on other sites

 Share

×
×
  • Create New...