How to port forward to connect PC and iPot with SSH?

Discussion in 'iPod touch' started by m26k9, Nov 19, 2007.

  1. m26k9

    m26k9 New Member

    Joined:
    Oct 30, 2007
    Messages:
    99
    Likes Received:
    0
    Hey guys...

    I'm having trouble SSH'ing my iPot from PC... I can do it with my laptop but confused with doing it through my PC.

    I have a router and a wireless router (FON) connected to it. So my main router and wireless network are in different IP's.
    Here's the configuration:

    Main router gateway : 192.168.0.1
    My PC : 192.168.0.3
    Wireless router IP : 192.168.0.2
    Wireless WiFi gateway : 192.168.10.1
    iPod Touch : 192.168.10.20
    Laptop : 192.168.10.12

    I have no problem SSH'ing to iPot from Laptop. But I want to be able to SSH from my PC as I have all my stuff in there.

    So I did the following port forwarding in main router and wireless router:

    Main router:
    Port - 22 Destination IP - 192.168.0.2
    Port - 22 Destination IP - 192.168.10.1

    (I put both these just to be sure)

    Wireless router:
    Port - 22 Destination IP - 192.168.0.1

    But still I cannot connect from my PC to iPot. Can anybody see what I'm doing wrong?

    Thanks guys...
  2. 1god1king

    1god1king New Member

    Joined:
    Nov 12, 2007
    Messages:
    389
    Likes Received:
    0
    what program are you using ?
    are you using WinSCP

    don't wanna assume but by seeing the port 22
    which is what WinSCP but i am pretty sure other programs may
    use the same port as well

    if not give it a try and on setup you can chage the programs port it uses
    http://www.ifans.com/forums/showthread.php?t=9978

    also
    do you know of a port that is already open like 80 etc
    can't you cahnge the port on the program on pc that you are using
    to a known open port ?

    don't have alot of knowledge in regards to port forwarding
    just trying to give suggesting

    *EDIT*
    also what firewall are you using could it be that the firewall is blocking the port
    windows firewall go to setiing/exceptions/add aprogram with the port
    not sure with other firewalls but pretty sure it might be the same
  3. chopshop

    chopshop New Member

    Joined:
    Oct 13, 2007
    Messages:
    70
    Likes Received:
    0
    I may be wrong, but I think this is all you'll need:

    Wireless router:
    Port - 22 Destination IP - 192.168.10.1

    It should only be on the wireless router as your trying to open up that ip/port to be seen by the main router not outside the main router's network.
  4. ydoucare

    ydoucare New Member

    Joined:
    Oct 15, 2007
    Messages:
    74
    Likes Received:
    0
    You shouldn't have to port forward within a local network. Is your PC running a firewall that is blocking port 22? Port forwarding is used so the router knows where to send incoming data from an external machine, into your internal network. In this case, you're passing data within your local network, so port forwarding is useless.
  5. m26k9

    m26k9 New Member

    Joined:
    Oct 30, 2007
    Messages:
    99
    Likes Received:
    0
    Hey guys...

    Thanks a lot for the input..
    yeah I'm using WinSCP...

    I turned off my firewall and tried but still the same... and it seems that I cant even log into my wireless router configuration from my PC... I can goto it (192.168.10.1- Web config on wireless router) from my iPot but not from my PC.. so my router cannot find 192.168.10.1 (or 192.168.0.2.. tried just in case).. I also changedthe wireless port forwarding to 192.168.10.1 but still the same...quite strange... maybe my wireless is in a different subnet???

    What am I missing here guys... I'd really like to be able to SSH from my PC...

    Please Register or Log in to view images



    Thanks again guys...
  6. 1god1king

    1god1king New Member

    Joined:
    Nov 12, 2007
    Messages:
    389
    Likes Received:
    0
    i beleive when you forward a port it just that a port .
    not yout IP address which it sounds like you are trying to do
  7. m26k9

    m26k9 New Member

    Joined:
    Oct 30, 2007
    Messages:
    99
    Likes Received:
    0
    I'm trying to forward the port to the IP address.. seems the problem is in one direction..
    Guess I'll just get a usb wireless module for the PC...

    Please Register or Log in to view images

  8. chopshop

    chopshop New Member

    Joined:
    Oct 13, 2007
    Messages:
    70
    Likes Received:
    0
    Ok, second idea: Use the wireless router as a hub, not a router. To access the wireless config from your pc you need to have it setup for remote management.(like your connecting to it from outside it's network). From what I've read it sounds like you have a network created by your main router with the 192.168.0.xxx ip's and then the wireless router creating a subnet on 192.168.10.xxx. To get to the wireless router from the pc you need to use it's external ip, 192.168.0.2. My suggestion is to go into the wireless configuration and turn off dhcp. Then instead of connecting the main router to the wlan input on the wireless, connect it to one of the regular hardwire ethernet connections. This will make your main router do all the ip addressing and should solve your separated network issue. If you search something like "using wireless router as hub" or "dual router configurations" you can find more info. I had to do this to be able to access a printer I had on my wireless router from computers on the main router.
  9. m26k9

    m26k9 New Member

    Joined:
    Oct 30, 2007
    Messages:
    99
    Likes Received:
    0
    Thanks a lot mate...
    I think I get what you are saying.. but the sad part is my wireless router has no ethernet ports... its just wireless...

    Please Register or Log in to view images



    I'm just going to buy a USB wireless dongle and connect it to PC..

    Thanks again man...

Share This Page