LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   putty,ssh etc problems (https://www.linuxquestions.org/questions/linux-general-1/putty-ssh-etc-problems-359628/)

Braveheart1980 09-02-2005 05:11 PM

putty,ssh etc problems
 
I have a dsl modem(Alcatel 530i)
I have connected it to a switch and from there with cables to my win pc and my linux pc

My linux pc has winxp pro sp1(no firewall) and my linux pc suse 9,3 pro(with suse's firewall)

I want to connect remotely to my linux pc
I have downloaded PuTTY and set up suse firewall so that ssh can have access
I have also samba set up and running ok

Using PuTTY i can get connected from my win pc to my linux pc using my "local" ip address (10.0.0.1)

I just then wondered if i can connect with putty from another computer (for instance an internet cafe or any other pc which is connected to the internet) to my linux pc

I went to www.whatismyip.com and i found out the ip of my linux pc

I've entered it to putty but i get "Network error : Connection refused"

I've also shut down my firewall but I still have the same problem

What should i do???

Plz help...

spooon 09-02-2005 05:24 PM

I think that your DSL modem is basically a router and that both your PCs share the "external" IP address of the router. Can you set your DSL modem to route specific incoming ports to specific computers on the network? (SSH is port 22)

Braveheart1980 09-02-2005 05:36 PM

Yes i think i can do it like i opened ports for azureus,limewire etc

I'll give it a try and see

Braveheart1980 09-02-2005 05:46 PM

Well i've forwarder port 22 (both tcp and udp) to my linux pc local ip (10.0.0.1) but no luck!

This time i got an error : Connection time out

Any ideas?

spooon 09-02-2005 05:51 PM

firewall?

Braveheart1980 09-02-2005 06:00 PM

I've switched off my firewall just 2 b sure

No luck.............

Braveheart1980 09-04-2005 04:18 PM

So anyone?

PS I have the Alcatel (now Thomson) Speedtouch 530i modem

Braveheart1980 01-06-2006 03:02 AM

All this time i've tried many things but none of them worked!

Any ideas would b welcome........

lozza1978 01-06-2006 07:40 AM

You will need to try from another connection, Your on a private IP range... and trying to go out through the 10.0.0.1 NAT translation to your Real IP then connect to the real IP to get forwarded to the Linux machine,

If you have setup port forwarding on your router and your sure its right, login to the net using a 56k modem, or any ther connection NOT the dsl line that has the linux box on.. and try to connect to the linux machine again using your real ip and port 22.

The problem is your router!

lleb 01-06-2006 12:07 PM

Quote:

Originally Posted by Braveheart1980
I just then wondered if i can connect with putty from another computer (for instance an internet cafe or any other pc which is connected to the internet) to my linux pc

I went to www.whatismyip.com and i found out the ip of my linux pc

I've entered it to putty but i get "Network error : Connection refused"

I've also shut down my firewall but I still have the same problem

What should i do???

Plz help...


you are trying to connect to your LAN from your LAN. that will not work if you use the WAN IP from within the LAN.

if you are away from your home and want to connect to your linux box via ssh (putty or native) then yes you will need to both open port 22 on your router and on the linux box firewall software (iptables). with SuSe they have a very nice GUI for their firewall that has many basic port defaults predefined and all you should have to do on the firewall is check the box for allow SSH and the firewall should no longer be an issue.

then you will need to work on your router to forward port 22 to the proper LAN IP. if you have only a few computers in your LAN it might be a good idea to turn of DHCP on the router and assign static IPs to your computers so you can manipulate your way around your LAN a bit simpler without running DNS.

then once you are out side of your house you would just write down your WAN IP, this can be gained the way you did it or via your router, and ssh user@IP and away you go.

also keep in mind that a fair amount of distros block root login via ssh so make sure to use your "user" not "root" for the login.

good luck, hope that helps.

BrianK 01-06-2006 12:46 PM

help us out a bit more... what's the internal ip of your router, what's the ip of your linux and your windows machine?... Let's make sure you don't have some wanky setup that would make this impossible.


All times are GMT -5. The time now is 01:55 PM.