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?

Subscribe
Share

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

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.

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