Page 1 of 1

Configure SSH.

Posted: 2019/11/04 10:34:08
by hack3rcon
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.

Re: Configure SSH.

Posted: 2019/11/04 12:23:57
by jlehtone
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?

Re: Configure SSH.

Posted: 2019/11/04 12:33:04
by hack3rcon
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.

Re: Configure SSH.

Posted: 2019/11/04 21:47:50
by Whoever
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.