Dr. Evil Posted November 4, 2006 Share Posted November 4, 2006 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 https://www.insanelymac.com/forum/topic/32159-configuring-openssh/ Share on other sites More sharing options...
Dr. Evil Posted November 5, 2006 Author Share Posted November 5, 2006 somebody must know the answer to this. am i approaching this correctly (as many websites have indicated) or is there some other way i should be doing this? Link to comment https://www.insanelymac.com/forum/topic/32159-configuring-openssh/#findComment-226302 Share on other sites More sharing options...
Dr. Evil Posted November 6, 2006 Author Share Posted November 6, 2006 should have been /etc/sshd_config instead of ssh_config. working fine now! Link to comment https://www.insanelymac.com/forum/topic/32159-configuring-openssh/#findComment-226528 Share on other sites More sharing options...
Recommended Posts