On Sat, Feb 27, 2010 at 10:43 PM, narendra sisodiya <[email protected]> wrote: > On Sat, Feb 27, 2010 at 10:02 PM, narendra sisodiya < > [email protected]> wrote: > >> >> >> On Sat, Feb 27, 2010 at 9:54 PM, Arun Khan <[email protected]> wrote: >> >>> On Sat, Feb 27, 2010 at 9:14 PM, narendra sisodiya >>> <[email protected]> wrote: >>> > I have two laptop. both are in different city. One is connected to >>> Reliance >>> > USB internet and other is connected via Tata Indicom. (both can open >>> > google.com , yup it means both are on Internet and hidden somewhere by >>> some >>> > methods,, fundas of external ips etc) >>> >>> Can you elaborate on "hidden somewhere by some >>> methods,, fundas of external ips etc?" Are you saying that the >>> lappies are behind a NAT device? >>> >>> See below, if not. >>> >>> Yes, i am pointing over NAT
You did not mention this in your OP. For networking issues it is very imperative to disclose your network topology so that people can understand your problem rather than guess what is in your mind. Us lesser mortals are not blessed with ESP :) Indeed with NAT you will have to put in port forwarding rules at both ends. >> >>> > >>> > I want to ssh from one laptop to other laptop because I cannot >>> troubleshoot >>> > over phone. >>> > how I can do it ? >>> >>> The simplest method that pops into my mind. >>> 1. get both lappies to register with dyndns with unique hostnames e.g. >>> lappyA and lappyB >>> 2. From lappyA: ssh <userid>@lappyB.<dyndns-domain> >>> 3. From lappyB: ssh <userid>@lappyA.<dyndns-domain> >>> >>> Let me try this. >> > Currently half success with doubts. > I have registered host on dydns , basically my friend has PC, which is > connected to airtel DSL modem, I can see whatismyip output and then directly > ssh also. > *lappyA: ssh <userid>@PC.<dyndns-domain>* > is working fine. but for this I have to make a mapping at DSL router. > Opening http://192.168.1.1 -- > Advanced Setup --> NAT --> Virtual > Servers --> ADD > So Here i have to ssh as service and now I will add ip of internal PC IIRC in your OP, the scenario you presented was that both systems were connected via USB data modems. With DSL modem, the game changes if it's WAN port is *not* bridged to the LAN port. In your friend's setup I guess it is not. > Problem > --- 1) IP may change, We have to change What is the **big** deal? ddclient on both systems will keep the hostnames updated on dyndns web site. Your WAN IP is changing and not the internal IP OR is it? > --- 2 ) We can only remote admin one system by this method. Why? What is preventing you from logging into this "one" machine open to the 'Net and then doing ssh to other systems on the LAN? > also, I will install a ddclient so that it will update ip automatically. > Also, I am unable to do the reverse operation. because LappyA is connected > to Reliance USB stick. I can see its external ip but there is no such > concept of opening http://192.168.1.1 -- > Advanced Setup --> NAT --> > Virtual Servers --> ADD With the Reliance data modem, your lappyA is *ON* the 'Net! Check outputs from /sbin/route -n and /sbin/ifconfig -a. Install ddclient on lappyA also and you should have no reason for not knowing the WAN ip's of A and B. BTW, I hope you have done due diligence and firewalled your lappyA properly, especially on the WAN port (most likely ppp0), o/w you will never know what/who came and hit you on the back of your head. -- Arun Khan _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
