Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-29-2010, 04:27 PM   #1
Registered: Jan 2006
Posts: 39

Rep: Reputation: 1
SSH Connection closed by

Hi Friend,

I am to unable to login with SSH. I am getting this error. Please assist me.

ssh root@
root@'s password:
Connection closed by

Old 07-29-2010, 04:33 PM   #2
Senior Member
Registered: Oct 2003
Posts: 2,579

Rep: Reputation: 220Reputation: 220Reputation: 220
Most of the time, the ssh daemon is configured out of the box to not allow root logins. It's considered an insecure practice to allow root logins from ssh and I can't think of a single distro that doesn't disallow ssh root logins by default. The more secure practice is to login as an ordinary non-root user with ssh and after logging in you su to root. I would guess that is what you are running into.
Old 07-29-2010, 05:37 PM   #3
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Also: what distro / version?

There are highly useful logs to help narrow down precisely this sort of problem.
Old 07-29-2010, 05:53 PM   #4
Registered: Jan 2006
Posts: 39

Original Poster
Rep: Reputation: 1


Thanks for your prompt reply. Am using the the below version of "SSH-2.0-OpenSSH_3.9p1 " Am having root user only.

Please help me to sort out this problem.

Old 07-30-2010, 01:10 AM   #5
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
As already said, give your distribution at the server. Also, if you have any access at server either physically or through some other person, check at the ssh server if root logins are allowed. If not you need to allow or use other non root user to login via ssh. The later option is the best.


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 ..... TheBrick Linux - Networking 4 02-10-2010 06:58 AM
SSH Connection Closed only when RSA Keys are present Sburk Linux - Software 3 06-07-2007 03:09 PM
SSH connection closed after username matcal Linux - Security 4 10-24-2005 12:04 PM
ssh connection closed by server m_yates Linux - Security 3 08-10-2005 04:12 PM
rsync thru SSH --- connection unexpectedly closed shawn_t Linux - Networking 4 02-25-2005 03:27 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:40 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