Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I finally found the answer (at least for my situation)! The problem was SELinux. I turned off SELinux, and it worked with no problem.</p> <p>If you interested in all of the gory details, you can read about it on <a href="http://linuxsagas.digitaleagle.net/2012/03/23/troubleshooting-ssh-connections-and-using-syslog/">my blog</a>, but let me detail the pertinent facts here...</p> <p>On the remote machine, I used dmesg to view the logging messages:</p> <pre><code>dmesg | tail </code></pre> <p>I found a number of messages like this:</p> <pre><code>type=1400 audit(1332520527.110:51337): avc: denied { read } for pid=25240 comm="sshd" name="authorized_keys" dev=dm-5 ino=167 scontext=unconfined_u:system_r:sshd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:home_root_t:s0 tclass=file </code></pre> <p>You can check the status of SELinux with this command:</p> <pre><code>$ sestatus SELinux status: enabled SELinuxfs mount: /selinux Current mode: permissive Mode from config file: permissive Policy version: 24 Policy from config file: targeted </code></pre> <p>You can turn it to permissive mode with this command:</p> <pre><code>setenforce 0 </code></pre> <p>For more information on SELinux, I found <a href="http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html-single/Security-Enhanced_Linux/index.html">Red Hat's guide helpful</a>. Also, for other SSH issues, I found <a href="http://dissectionbydavid.wordpress.com/2010/06/24/ssh-log-file-making-one-new-location/">David's blog</a> helpful for getting logging to help.</p> <p>For me, after that, my X11 forwarding started working with no problem.</p> <p>SELinux was preventing several other different things. It could not create the necessary files to make key authentication work. I also found it blocking ssh-keygen from creating keys in the home directory.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload