Configure SSH.

Support for security such as Firewalls and securing linux
Post Reply
hack3rcon
Posts: 458
Joined: 2014/11/24 11:04:37

Configure SSH.

Post by hack3rcon » 2019/11/04 10:34:08

Hello,
In "sshd_config" file I want to change "ListenAddress" but my web server is a VM and have internal IP. This VM using some routing rules for access to the internel.
The "ListenAddress" must be my public IP or internal IP that set to my NIC?

Thanks.

User avatar
jlehtone
Posts: 2427
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Configure SSH.

Post by jlehtone » 2019/11/04 12:23:57

You cannot listen an address that the machine does not have. sshd does listen all addresses of the machine by default. Is that a problem?

hack3rcon
Posts: 458
Joined: 2014/11/24 11:04:37

Re: Configure SSH.

Post by hack3rcon » 2019/11/04 12:33:04

jlehtone wrote:
2019/11/04 12:23:57
You cannot listen an address that the machine does not have. sshd does listen all addresses of the machine by default. Is that a problem?
I read an article that said for security purpose it is better to define an IP.

Whoever
Posts: 1089
Joined: 2013/09/06 03:12:10

Re: Configure SSH.

Post by Whoever » 2019/11/04 21:47:50

hack3rcon wrote:
2019/11/04 12:33:04
jlehtone wrote:
2019/11/04 12:23:57
You cannot listen an address that the machine does not have. sshd does listen all addresses of the machine by default. Is that a problem?
I read an article that said for security purpose it is better to define an IP.
Please go back and read jlehtone's post again.

In your situation, there is no advantage to attempting to configure a specific IP address for your box to listen on.

Post Reply

Return to “CentOS 6 - Security Support”