Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cannont ssh into linux box from internet
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
IronEye
n00b
n00b


Joined: 29 Aug 2004
Posts: 23

PostPosted: Wed Aug 31, 2005 4:01 am    Post subject: cannont ssh into linux box from internet Reply with quote

I have a Windows XP professional machine which connects to the internet. The connection is shared via Windows ICS. I configured the firewall to forward tcp traffic on port 22 to my gentoo machine. Using Putty, I can access the machine by its intranet address, 192.168.0.104. However, if I try to ssh into it using my internet IP. I get "Network Error: Connection refused." I'm using basically all of the default settings. I manually generated some keys, but that didn't change any functionality. I could never connect using an internet IP. Are there settings that need to be changed?

Thanks,
Kris
Back to top
View user's profile Send private message
d4rkwingduck
Apprentice
Apprentice


Joined: 11 Aug 2005
Posts: 220
Location: somwhere on this big blue earth

PostPosted: Wed Aug 31, 2005 4:19 am    Post subject: Reply with quote

dunno if this helps, but on my router i cannot access services inside my lan using my internet ip if im in the lan, hope u understand that so yeah anehow when i setup the services i usually go to sygate online scan @ http://scan.sygatetech.com/ and check if the ports and service name appear to be open on the public ip :) .. like i say dunno if that was anyway helpful ... :?
_________________
http://www.di.fm/trance
Back to top
View user's profile Send private message
gnuageux
Veteran
Veteran


Joined: 17 Apr 2004
Posts: 1201

PostPosted: Wed Aug 31, 2005 5:09 am    Post subject: Reply with quote

Yeah, sounds like something is up w/ the port forward on the dsl / cable modem or whatever.
_________________
The realOTW: http://forums.realotw.org/index.php

Registered Linux user#364538
Back to top
View user's profile Send private message
IronEye
n00b
n00b


Joined: 29 Aug 2004
Posts: 23

PostPosted: Wed Aug 31, 2005 11:05 am    Post subject: Reply with quote

Sygate does find the SSH service. It even provides the version number.

Trying to find out what services you are running...
Secure Shell Open = SSH-2.0-OpenSSH_3.9p1

I'm using Windows dial up networking with ICS/ICF.

Internal port: 22
External port: 22

-Kris
Back to top
View user's profile Send private message
d4rkwingduck
Apprentice
Apprentice


Joined: 11 Aug 2005
Posts: 220
Location: somwhere on this big blue earth

PostPosted: Wed Aug 31, 2005 11:14 am    Post subject: Reply with quote

try connecting to the service outside your network and c how it goes
_________________
http://www.di.fm/trance
Back to top
View user's profile Send private message
IronEye
n00b
n00b


Joined: 29 Aug 2004
Posts: 23

PostPosted: Wed Aug 31, 2005 11:24 am    Post subject: Reply with quote

I've been specifying an IP manually and it doesnt work. I don't have a machine outside of the network that I can use. If someone could test it for me the IP is: 65.216.169.201


Thanks,
Kris
Back to top
View user's profile Send private message
d4rkwingduck
Apprentice
Apprentice


Joined: 11 Aug 2005
Posts: 220
Location: somwhere on this big blue earth

PostPosted: Wed Aug 31, 2005 11:30 am    Post subject: Reply with quote

seems to be working i get the banner ;)
_________________
http://www.di.fm/trance
Back to top
View user's profile Send private message
IronEye
n00b
n00b


Joined: 29 Aug 2004
Posts: 23

PostPosted: Wed Aug 31, 2005 11:35 am    Post subject: Reply with quote

That's odd, I never configured a banner. It usually just says "login:" Is that what you're referring too? If it works it must be some strange way ICS works. Perhaps it can't route the packet from my machine back to the Gentoo machine.

Thanks for your assistance!

-Kris
Back to top
View user's profile Send private message
d4rkwingduck
Apprentice
Apprentice


Joined: 11 Aug 2005
Posts: 220
Location: somwhere on this big blue earth

PostPosted: Wed Aug 31, 2005 11:37 am    Post subject: Reply with quote

it says SSH-2.0-OpenSSH_3.9p1

edit: i would say it works, ive used putty and i did get to the login prompt ;)
_________________
http://www.di.fm/trance
Back to top
View user's profile Send private message
IronEye
n00b
n00b


Joined: 29 Aug 2004
Posts: 23

PostPosted: Wed Aug 31, 2005 11:45 am    Post subject: Reply with quote

What SSH client are you using?
Back to top
View user's profile Send private message
d4rkwingduck
Apprentice
Apprentice


Joined: 11 Aug 2005
Posts: 220
Location: somwhere on this big blue earth

PostPosted: Wed Aug 31, 2005 11:47 am    Post subject: Reply with quote

putty, prior to that i was using netcat cause i didnt have putty emerged ;)
_________________
http://www.di.fm/trance
Back to top
View user's profile Send private message
Ph0eniX
Guru
Guru


Joined: 24 Sep 2004
Posts: 502
Location: New York, U.S.

PostPosted: Wed Aug 31, 2005 2:26 pm    Post subject: Reply with quote

IronEye wrote:
If someone could test it for me the IP is: 65.216.169.201




Works like a charm! (I'm using putty and Cygwin)
Back to top
View user's profile Send private message
DaveArb
Guru
Guru


Joined: 29 Apr 2004
Posts: 510
Location: Texas, USA

PostPosted: Wed Aug 31, 2005 2:28 pm    Post subject: Reply with quote

IronEye wrote:
If it works it must be some strange way ICS works. Perhaps it can't route the packet from my machine back to the Gentoo machine.


Earlier, kel said: "but on my router i cannot access services inside my lan using my internet ip if im in the lan"

This is ordinary, most routers will not accept traffic from within the LAN, if it is addressed to the WAN port. This appears to be exactly the problem you're having.

Dave
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum