Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-02-2011, 02:50 AM   #1
LQ Newbie
Registered: Apr 2011
Posts: 12

Rep: Reputation: 1
Question ssh connection closed immediately after logged in

I'm using Ubuntu 11.04. I've bought an account in a SSH sever.

loveright 02:41:54 ~$ ssh gqqnb@
gqqnb@'s password:
Last login: Sat Jul  2 14:41:53 2011 from
Connection to closed.
I've tried many times, the issue persists. ssh localhost is ok.

I go to Windows, run Bitvise Tunnelier. After providing corresponding information, connection is established.

14:48:07.381 Starting a new SSH2 session.
14:48:07.383 Connecting to SSH2 server
14:48:07.594 Connected.
14:48:07.610 Starting first key exchange.
14:48:07.821 Server version string: SSH-2.0-OpenSSH_4.3
14:48:09.624 New host key received. Algorithm: ssh-rsa, Size: 2048 bits, MD5 Fingerprint: 23:9d:60:d8:2c:2c:32:42:20:7e:38:c0:c0:83:44:6c, Bubble-Babble: xiloz-vafen-zacab-vidif-samek-rydez-zisat-vifep-netop-duceg-fexax.
14:48:09.644 First key exchange completed.
14:48:09.648 Key exchange: diffie-hellman-group14-sha1. Session encryption: aes256-ctr, MAC: hmac-sha1, compression: none.
14:48:09.844 Attempting 'password' authentication.
14:48:11.096 Authentication completed.
14:48:11.096 Initializing SOCKS / HTTP CONNECT proxy on succeeded.
So, how can I fix? Any hints?

Last edited by gqqnbig; 07-02-2011 at 02:54 AM. Reason: typo
Old 07-02-2011, 03:45 AM   #2
LQ Newbie
Registered: Jun 2011
Distribution: Ubuntu
Posts: 26

Rep: Reputation: Disabled
Try first a verbose connection :
ssh -vvv gqqnb@
Old 07-02-2011, 03:48 AM   #3
LQ Newbie
Registered: Apr 2011
Posts: 12

Original Poster
Rep: Reputation: 1
It's fixed now.
I contracted the custom service, he said it was because of the configuration of the server. He fixed it and I can log in successfully.
Old 07-02-2011, 04:05 AM   #4
Registered: Feb 2006
Posts: 69

Rep: Reputation: 15
try to debug. Type ssh -vvv gqqnb@ and check what difference in output
from Bitvise Tunnelier.


connection, ssh

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 closed by ramesh_india2020 Linux - Newbie 4 07-30-2010 12:10 AM
ssh Connection closed by ..... TheBrick Linux - Networking 4 02-10-2010 05:58 AM
Connection to SSH closing immediately scratched Linux - General 8 03-25-2007 11:49 PM
SSH connection closed after username matcal Linux - Security 4 10-24-2005 11:04 AM
ssh connection closed by server m_yates Linux - Security 3 08-10-2005 03:12 PM

All times are GMT -5. The time now is 05:58 PM.

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