Hello,
Here is my problem statement :
I have 2 PCs :
PC1 -> Windows XP with SSH client installed
PC2 -> Linux with OpenSSH installed
Both of them are connected to a common router. The router is in turn connected to a DSL modem. I start an internet connection in my Windows XP desktop. I do not connect my Linux machine to the internet.
PC1(Windows XP)-------------->
Router<------------------
PC2 (Linux)
When I type the following in Linux , it does return information about the eth0 interface , but this interface does not have any IP address since the IP address is assigned by my ISP using DHCP :
So I believe this is correct.
I do have sshd started on my Linux PC. But since my Linux machine does not have any IP address as it is not connected to the Internet using my ISP , how do I SSH into it from my Windows box which is connected to the internet ? I mean what IP address do I use for connecting from my Windows to Linux box.
I was able to ssh into my Linux box from Windows in the following scenario though , but this is not what I want (unless this is the only option available) :
Windows is not connected to the internet using ISP
Assign static IP address of 192.168.1.1 to Windows box
Assign static IP address of 192.168.1.2 to Windows box
Start sshd daemon on Linux box
ssh from Windows using static IP address of 192.168.1.2
Any help will be greatly appreciated.