LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-13-2005, 02:45 PM   #1
jwn7
Member
 
Registered: Aug 2004
Location: pittsburgh, pa
Distribution: gentoo
Posts: 81

Rep: Reputation: 15
can't connect to sshd over internet [FIXED]


hi

i'm trying to set up sshd over here so i can work on this machine when i'm at work and stuff.

ssh user@127.0.0.1 works fine

xxxx@ ~ $ ssh -vvv user@`ip`
OpenSSH_3.9p1, OpenSSL 0.9.7e 25 Oct 2004
debug2: ssh_connect: needpriv 0
debug1: Connecting to 67.186.xxx.xxx [67.186.xxx.xxx] port 22.
debug1: connect to address 67.186.xxx.xxx port 22: Connection timed out
ssh: connect to host 67.186.xxx.xxx port 22: Connection timed out

i have a firewall on my router, port 22 is forwarded and connections to port 22 are allowed. does anybody know what's going on and how i fix it??

thanks

Last edited by jwn7; 09-13-2005 at 06:52 PM.
 
Old 09-13-2005, 03:42 PM   #2
R4z0r
Member
 
Registered: Jan 2002
Distribution: CentOS 3.1
Posts: 119

Rep: Reputation: 15
Are connections to port 22 allowed on the remote box?
 
Old 09-13-2005, 04:09 PM   #3
jwn7
Member
 
Registered: Aug 2004
Location: pittsburgh, pa
Distribution: gentoo
Posts: 81

Original Poster
Rep: Reputation: 15
the "remote box" is the server

what i'm doing is: running sshd on my laptop here, trying to connect to my laptop (from same laptop) via my external ip address. instead of

ssh asdf@127.0.0.1 i'm typing ssh asdf@xxx.xxx.xxx.xxx and it doesn't work

i also tried typing that from an actual remote machine and it times out. i think it's something with my firewall on the router?? port 22 is allowed across the board so this doens't make sense.
 
Old 09-13-2005, 04:45 PM   #4
jwn7
Member
 
Registered: Aug 2004
Location: pittsburgh, pa
Distribution: gentoo
Posts: 81

Original Poster
Rep: Reputation: 15
ok as i thought the issue was with the router. i restored the factory settings on it and setup a port forward thingy for ssh on 22 and it works great now.
 
Old 09-13-2005, 05:47 PM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Put
"ssh_connect: needpriv 0"
into Google Linux(http://www.google.com/linux?q=%22ssh...+needpriv+0%22), there are some interesting things there.

Now for some counter Q's:[list=1][*]It works connecting to itself, it doesn't work over the 'Net, did you try it on your LAN?[*]What is the router?[*]How sure are you that it is fwd'ing?[*]Still using Ubuntu?[/list=1]

PS: This is a forum not a chat room, capitalization is appreciated.
 
Old 09-13-2005, 06:44 PM   #6
jwn7
Member
 
Registered: Aug 2004
Location: pittsburgh, pa
Distribution: gentoo
Posts: 81

Original Poster
Rep: Reputation: 15
Quote:
PS: This is a forum not a chat room, capitalization is appreciated. [/B]
dork

reading is appreciated. if you read you'd see i already figured this out
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot connect to sshd on Fedora 3. sdouble Linux - Software 3 01-16-2005 09:45 PM
ProFTPd & SSHd, opening up to the Internet while maintaining security Xolo Linux - Security 3 12-11-2004 04:31 PM
can't connect to the internet:linux dont read my internet address droplsh Linux - General 1 02-29-2004 07:32 PM
[new bie] sshd: refused connect from 192.168.x.x jmcollin92 Linux - Security 2 12-14-2003 02:39 AM
Can't connect to sshd with keyauthentication sitrus Linux - Security 13 12-16-2002 09:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:47 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration