Solved

ssh from office to home  windows to linux

Posted on 2006-07-20
17
283 Views
Last Modified: 2010-03-17
I fairly new to linux so I am not sure where to start.

I have a laptop running windows xp and I want to be able to ssh using putty to a linux machine that I have at home which is attached to a WRT54G linksys router

My linux box has a static ip address 192.168.1.110  
My router is 192.168.1.1

When I run ipconfig/all from my laptop when I am at home attached to wireless router I get the following. I can ssh from laptop to linux when I am at home no problem.
Where do I start?
Thanks in advance.

C:\Documents and Settings\plinnane>ipconfig/all

Windows IP Configuration

        Host Name . . . . . . . . . . . . : plinnane-us
        Primary Dns Suffix  . . . . . . . : us.dell.com
        Node Type . . . . . . . . . . . . : Hybrid
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No
        DNS Suffix Search List. . . . . . : us.dell.com
                                            austin.rr.com
                                            dell.com

Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . : austin.rr.com
        Description . . . . . . . . . . . : Broadcom NetXtreme 57xx Gigabit Controll
        Physical Address. . . . . . . . . : 00-15-C5-0A-D5-85
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 192.168.1.100
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        IP Address. . . . . . . . . . . . : fe80::215:c5ff:fe0a:d585%20
        Default Gateway . . . . . . . . . : 192.168.1.1
        DHCP Server . . . . . . . . . . . : 192.168.1.1
        DNS Servers . . . . . . . . . . . : 24.93.41.125
                                            24.93.41.126
                                            fec0:0:0:ffff::1%4
                                            fec0:0:0:ffff::2%4
                                            fec0:0:0:ffff::3%4
        Lease Obtained. . . . . . . . . . : Wednesday, July 19, 2006 9:04:23 PM
        Lease Expires . . . . . . . . . . : Thursday, July 20, 2006 9:04:23 PM

Tunnel adapter Teredo Tunneling Pseudo-Interface:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
        Physical Address. . . . . . . . . : FF-FF-FF-FF-FF-FF-FF-FF
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : fe80::5445:5245:444f%5
        Default Gateway . . . . . . . . . :
        NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter Automatic Tunneling Pseudo-Interface:

        Connection-specific DNS Suffix  . : austin.rr.com
        Description . . . . . . . . . . . : Automatic Tunneling Pseudo-Interface
        Physical Address. . . . . . . . . : C0-A8-01-64
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : fe80::5efe:192.168.1.100%2
        Default Gateway . . . . . . . . . :
        DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%4
                                            fec0:0:0:ffff::2%4
                                            fec0:0:0:ffff::3%4
        NetBIOS over Tcpip. . . . . . . . : Disabled

0
Comment
Question by:dplinnane
  • 6
  • 5
  • 3
17 Comments
 
LVL 5

Expert Comment

by:Dbergert
ID: 17149829
you need to configure port forwarding on your router to expose ssh to the interent and point it at the ip our your linux box...
0
 
LVL 25

Expert Comment

by:Cyclops3590
ID: 17149902
but you should have the wrt54g do a port translation for you.

for example, ssh uses port 22.  Everyone knows that and thus scans for it.  Have your router expose say port 2022 and in the port forwarding tell it that the public port 2022 goes to your linux box on port 22.

This will help cut down on the number of people scanning your ssh port tremendously
0
 

Author Comment

by:dplinnane
ID: 17150055
How do I set up port forwarding?
I still need to ssh to an ip address where do I get that?
If I ssh to the ipaddress of my internet connection eg 168.192.2.66  but I have two linux machines with static ip addresses how can I ssh to one over the other. I gus I need to figure out port forwarding first.
0
 

Author Comment

by:dplinnane
ID: 17150074
0
 
LVL 5

Accepted Solution

by:
Dbergert earned 250 total points
ID: 17150075
0
 
LVL 5

Expert Comment

by:Dbergert
ID: 17150084
funny looks like you are on the right path :)
0
 
LVL 25

Assisted Solution

by:Cyclops3590
Cyclops3590 earned 250 total points
ID: 17150091
that's no problem
I did the same thig
forward one port 2022 to machine A, then say 3022 to your machine B

then wen you ssh to your machines you do this
ssh to 168.192.2.66 port 2022 for A
ssh to 168.192.2.66 port 3022 for B

I switched my wrt54g out a while ago so I don't totally remember the menus, but you should find a port forwarding section, it then says what port to forward to what internal IP and what port for that internal IP
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:dplinnane
ID: 17151045
My linksys router only allows me to port forward addresses of the format 192.168.1. XXX one of my ip's is 192.168.2.xxx anyway around this. IS there anyway of testing this locally instead of waiting until tomorrow when I go into the office.  
0
 
LVL 25

Expert Comment

by:Cyclops3590
ID: 17151287
doubt it, but the wrt54g does have the capability to allow remote mgmt.  now you shouldn't normally turn this on, but temporarily I would think is ok.  this way you can test it at work and if it doesn't work, you can at least log in and change some.  when you're satisfied turn the remote mgmt off.

as for the diff. ip I'd have to say no.  Why do you have a 192.168.2.x inside anyway out of curiousity
0
 

Author Comment

by:dplinnane
ID: 17155499
I'm using 192.168.2.x just following instructions. I can overcome it by ssh from linux1 machine to linux2 machine.


I tried from work and got a connection error connection refused. I followed the instructions for port forwarding.. Not sure what could be wrong.
0
 
LVL 25

Expert Comment

by:Cyclops3590
ID: 17155522
is there a firewall on your server that might be rejecting the connections, also, you sure you forwarded to the correct port and and referencing the public port?
0
 

Author Comment

by:dplinnane
ID: 17155695
No firewall at least I have not setup a firewall.  I used port 2022.
0
 
LVL 25

Expert Comment

by:Cyclops3590
ID: 17156823
and forwarded it to port 22 on the server correct?
then you tried to connect to 2022 for the public ip correct?
0
 

Author Comment

by:dplinnane
ID: 17157126
I'll send a link to my settings later when I get home, I can't remember.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now