Help - Search - Members - Calendar
Full Version: SSH in Linux Enterprise
Linuxhelp > Support > Technical Support
Norlela
Hi,

I have a web server which is installed with Linux Enterprise. I want to know how to enable SSH for internal users and disable SSH for external/outsiders.

Please assist.


Thanks & regards
michaelk
Is this webserver directly connected to the internet or do you have a router firewall?
If directly connected to the internet then your firewall should be configured to drop traffic on the interface it is connected to. It is also a good idea to change the port that SSH runs on to something besides 22.
Norlela
My webserver is directly connected to the internet and i used port no. 22.

I've configured hosts.allow file to enable the internal SSH, but it does not work.

Please assist.

Thanks & regards
michaelk
Modify the /etc/ssh/sshd_config file to limit users. Example:
AllowUsers user1 user2
Be sure to disable root login.
PermitRootLogin no

Modify the firewall to drop everything on the incoming connection and only allow specific traffic.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.