LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-27-2012, 07:54 AM   #1
mosthated
LQ Newbie
 
Registered: May 2012
Posts: 8

Rep: Reputation: Disabled
[ssh] write failed: broken pipe


Hi all,

I installed openssh (sudo apt-get install openssh-server) but am unable to connect to my machine from within our outside the network (I enabled portforwarding to port 22 in my router to the static IP of the machine that should work as a server)

When I connect I get the error message:

"write failed: broken pipe"

I ALSO get this message when I try to open a shell from the machine itself:

ssh localhost

Could anybody help me try fixing this problem?

Thanks in advance! M0s..
 
Old 06-28-2012, 01:53 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

you should check the output of the ssh client run in verbose mode:
Code:
ssh -vvv user@host
If that does not provide enough information you should check the logs on the machine where sshd is running. The exact file to check will depend on your setup/distribution, but on a Debian based machine it would be /var/log/auth.log
Please check this file for the entries corresponding to the failed ssh attempt: this should help you understand what is causing the problem. If you still can't work it out please post the relevant lines from the log file and the output of 'ssh -vvv' in [code] tags on the forum.

Evo2.
 
Old 06-28-2012, 07:21 AM   #3
mosthated
LQ Newbie
 
Registered: May 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks for your reply.

It turned out that the login user wasn't owning the home (because for sftp, I changed ownership of home to root to be able to chroot).

Now I changed the ownership back to user.

Thanks.

M0s..
 
  


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 Write failed: Broken pipe shogun1234 Linux - Networking 3 12-08-2010 10:33 PM
'broken pipe' error when attempting to write to windows share bowens44 Linux - General 1 07-20-2009 06:43 AM
smb_mount: open session failed!: syserr = Broken pipe neoform Linux - Server 0 05-08-2009 09:38 PM
dpkg wont install kbuild (failed to write to pipe in copy) Daniel Baker Linux - Wireless Networking 6 09-06-2007 11:52 AM
Doom 3 demo: snd_pcm_writei failed: Broken pipe nikolaj Linux - Games 0 04-14-2005 01:00 PM


All times are GMT -5. The time now is 09:58 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration