LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-06-2007, 04:05 PM   #1
Pagoda Gift Shop
LQ Newbie
 
Registered: Sep 2006
Posts: 7

Rep: Reputation: 0
SSH server allows connection...then hangs


I'm running an SSH server on a Knoppix laptop. I have been connecting to it just fine over my LAN, wanted to open it up so that I could get in from outside the router as well. I made the necessary changes to the router, etc. but now it hangs when I try to connect.

Here's the client output:

root@box:/home/w107jrk# ssh -v w107jrk@69.266.48.75
OpenSSH_3.8.1p1 Debian-8.sarge.4, OpenSSL 0.9.7e 25 Oct 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: /etc/ssh/ssh_config line 33: Deprecated option "RhostsAuthentication"
debug1: /etc/ssh/ssh_config line 37: Deprecated option "FallBackToRsh"
debug1: /etc/ssh/ssh_config line 38: Deprecated option "UseRsh"
debug1: Connecting to 69.214.48.75 [69.214.48.75] port 22.
debug1: Connection established.
debug1: read PEM private key done: type DSA
debug1: read PEM private key done: type RSA
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.8.1p1 Debian-8.sarge.4
debug1: match: OpenSSH_3.8.1p1 Debian-8.sarge.4 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1 Debian-8.sarge.4
debug1: SSH2_MSG_KEXINIT sent

It never goes further than that.

The server output is:

root@box:/home/w107jrk# sshd -d
debug1: sshd version OpenSSH_3.8.1p1 Debian-8.sarge.4
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: Bind to port 22 on ::.
Server listening on :: port 22.
debug1: Bind to port 22 on 0.0.0.0.
Generating 768 bit RSA key.
RSA key generation complete.
debug1: Server will not fork when running in debugging mode.
Connection from ::ffff:69.266.48.75 port 58898

And stops there. Obviously it is accepting the connection, but it never prompts for a password or anything. Any ideas what's up?
 
Old 11-06-2007, 05:11 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
I am guessing it is configured to only except passphrase type connection. No passwords allowed. Is the public rsa or dsa key on the machine you are connecting from.

Brian
 
Old 11-06-2007, 06:57 PM   #3
Pagoda Gift Shop
LQ Newbie
 
Registered: Sep 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Hmm. I'm using the same machines I was using when connecting through the LAN, only now I'm using ip address instead of the local address in order to go through the WAN. Both machines which work using the LAN have the same problem listed above. In both cases they prompted for passwords on the LAN.

Other than that the settings are all the defaults. Would there be settings somewhere that would make it a different authentication method?
 
Old 11-07-2007, 05:56 PM   #4
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Might be a bit confused but can you make an ssh connection fine if both machines are in the same lan network?

Brian
 
Old 11-20-2007, 05:20 PM   #5
Pagoda Gift Shop
LQ Newbie
 
Registered: Sep 2006
Posts: 7

Original Poster
Rep: Reputation: 0
That's correct. I have no problems connecting locally thru the LAN.
 
  


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
ssh connection hangs at expecting SSH2_MSG_KEX_DH_GEX_GROUP suger Linux - Networking 2 01-18-2007 08:19 PM
SSH hangs frequently over wireless connection smith_cc Linux - Wireless Networking 1 01-03-2007 06:37 PM
SSH connection hangs over dialup flint Linux - Software 1 04-22-2005 08:57 AM
ssh hangs after establishing connection TreeHugger Linux - Security 2 11-03-2004 10:20 AM
Putty and ssh connection hangs KidKootenay Linux - Newbie 7 09-03-2004 11:30 PM


All times are GMT -5. The time now is 03:30 AM.

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