LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 06: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, 12:53 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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, 06: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:36 PM.

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
Open Source Consulting | Domain Registration