Question

client_loop: send disconnect: Broken pipe

On Fedora 36 after setting selinux to enforce and restart server I cannot enter to ssh, but web server works. I checked many solutions like ServerAliveInterval , ClientAliveInterval etc, but no solution. Is there any real solution?


Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

KFSys
Site Moderator
Site Moderator badge
June 9, 2022

Hi @kakhavk,

Try setting selinux to permissive and see if that helps out. Additionally, see what SSH access is allowed in your sshd_config located in /etc/ssh/sshd_config. If SELinux was denying access I’d expect to see some type of AVC (Access Vector Cache) error in the /var/log/audit/audit.log .

Additionally, it’s possible you do not have the proper permission on your .ssh folder and files inside.

  1. # chmod 700/root/.ssh/
  2. # chmod 600 /root/.ssh/authorized_keys
  3. # restorecon -R -v /root/.ssh