LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sshd and two network cards (https://www.linuxquestions.org/questions/linux-newbie-8/sshd-and-two-network-cards-4175427830/)

sluge 09-18-2012 09:40 AM

sshd and two network cards
 
Hello!
I have two network cards
eth0 192.168.1.1
eth1 192.168.1.2

I start sshd on my server. What address shoul I type for connecting to my server: 192.168.1.1 or 192.168.1.2 or any of these two addresses?

szboardstretcher 09-18-2012 09:41 AM

... Did you try both of them? It would be the quickest way to find the answer.

jsaravana87 09-18-2012 01:21 PM

Hi
Ans for your q: yes ,You can reach you server with both ipaddress 192.168.1.0 & 192.168.1.1

chrism01 09-18-2012 08:43 PM

Check the /etc/ssh/sshd_config file to which address(es) it is listening on.
Also,
Code:

netstat -tanp


All times are GMT -5. The time now is 06:50 PM.