LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   SSH server allows connection...then hangs (https://www.linuxquestions.org/questions/linux-server-73/ssh-server-allows-connection-then-hangs-597604/)

Pagoda Gift Shop 11-06-2007 04:05 PM

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?

Brian1 11-06-2007 05:11 PM

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

Pagoda Gift Shop 11-06-2007 06:57 PM

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?

Brian1 11-07-2007 05:56 PM

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

Brian

Pagoda Gift Shop 11-20-2007 05:20 PM

That's correct. I have no problems connecting locally thru the LAN.


All times are GMT -5. The time now is 02:47 AM.