LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-02-2005, 05:11 PM   #1
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633
Blog Entries: 1

Rep: Reputation: 30
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...
 
Old 09-02-2005, 05:24 PM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 48
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)
 
Old 09-02-2005, 05:36 PM   #3
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633
Blog Entries: 1

Original Poster
Rep: Reputation: 30
Yes i think i can do it like i opened ports for azureus,limewire etc

I'll give it a try and see
 
Old 09-02-2005, 05:46 PM   #4
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633
Blog Entries: 1

Original Poster
Rep: Reputation: 30
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?
 
Old 09-02-2005, 05:51 PM   #5
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 48
firewall?
 
Old 09-02-2005, 06:00 PM   #6
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633
Blog Entries: 1

Original Poster
Rep: Reputation: 30
I've switched off my firewall just 2 b sure

No luck.............
 
Old 09-04-2005, 04:18 PM   #7
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633
Blog Entries: 1

Original Poster
Rep: Reputation: 30
So anyone?

PS I have the Alcatel (now Thomson) Speedtouch 530i modem
 
Old 01-06-2006, 03:02 AM   #8
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633
Blog Entries: 1

Original Poster
Rep: Reputation: 30
All this time i've tried many things but none of them worked!

Any ideas would b welcome........
 
Old 01-06-2006, 07:40 AM   #9
lozza1978
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Rep: Reputation: 15
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!
 
Old 01-06-2006, 12:07 PM   #10
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,440

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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.
 
Old 01-06-2006, 12:46 PM   #11
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing pc with putty (ssh) Wozl Linux - Networking 1 10-10-2005 03:44 PM
PuTTY/OS X SSH confusion stutterbug Linux - General 1 03-12-2005 04:38 PM
putty SSH connection deWin Linux - Newbie 3 03-26-2004 09:47 AM
SSH using putty rkemp Linux - Networking 3 03-06-2004 05:04 PM
ssh and using putty from the client ashley75 Linux - General 12 09-11-2003 01:21 PM


All times are GMT -5. The time now is 09:51 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration