<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ssh agent forwarding issue from one host? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ssh-agent-forwarding-issue-from-one-host/m-p/5867867#M53950</link>
    <description>&lt;P&gt;Hi;&lt;/P&gt;&lt;P&gt;I have a squirrelly issue with ssh agent forwarding and I'm out of ideas on how to troubleshoot it.&lt;/P&gt;&lt;P&gt;I have four systems:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* my laptop (dolaptop1) running ubuntu ver 11.1 which holds my private key and is the location of the running ssh-agent.&lt;BR /&gt;* a desktop (fw) running ubuntu ver 12.04&lt;BR /&gt;* Another desktop (samba) running fedora core 8&lt;BR /&gt;* A last desktop (chester) running fedora core 17&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my laptop, I can access all three desktops:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ for h in chester fw samba&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; ssh ${h} hostname&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;chester&lt;BR /&gt;fw&lt;BR /&gt;samba&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From samba and chester, I can access the other two desktops:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# h&lt;BR /&gt;samba&lt;BR /&gt;# for h in fw chester&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; ssh ${h} hostname&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;fw&lt;BR /&gt;chester&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# hostname&lt;BR /&gt;chester&lt;BR /&gt;# for h in fw samba&lt;BR /&gt;do&lt;BR /&gt;ssh ${h} hostname&lt;BR /&gt;done&lt;BR /&gt;fw&lt;BR /&gt;samba&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From fw, I can't access anything:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# ssh samba hostame&lt;BR /&gt;Permission denied (publickey,gssapi-with-mic). # pwd authentication turned off&lt;/P&gt;&lt;P&gt;# ssh chester&lt;BR /&gt;root@chester's password:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ssh directory is locked down:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# ls -ld ~/.ssh&lt;BR /&gt;drwx------ 3 root root 4096 Nov 14 20:22 /root/.ssh/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ssh_config is set to forward the agent:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# grep -v -e ^# -e ^$ /etc/ssh/ssh_config which is the same as samba:&lt;/P&gt;&lt;P&gt;Host *&lt;BR /&gt;ForwardAgent yes&lt;BR /&gt;ForwardX11 yes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the env has the right information for the agent:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# set | grep -i ssh&lt;BR /&gt;_=/etc/ssh/ssh_config&lt;BR /&gt;Pwd=/etc/ssh&lt;BR /&gt;PWD=/etc/ssh&lt;BR /&gt;SSH_AUTH_SOCK=/tmp/ssh-jvNKDF7642/agent.7642&lt;BR /&gt;SSH_CLIENT='192.168.12.51 34743 22'&lt;BR /&gt;SSH_CONNECTION='192.168.12.51 34743 192.168.12.1 22'&lt;BR /&gt;SSH_TTY=/dev/pts/1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've compared the output of ssh -v -v from both the functional and nonfunctional systems. The only thing out of the ordinary is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;debug1: Roaming not allowed by server&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, google searches haven't given me much to check, though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have an idea on what's causing this and/or how to fix it? I appreciate any info/hints/tips/suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doug O'Leary&lt;/P&gt;</description>
    <pubDate>Thu, 15 Nov 2012 18:34:37 GMT</pubDate>
    <dc:creator>Doug O'Leary</dc:creator>
    <dc:date>2012-11-15T18:34:37Z</dc:date>
    <item>
      <title>ssh agent forwarding issue from one host?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-agent-forwarding-issue-from-one-host/m-p/5867867#M53950</link>
      <description>&lt;P&gt;Hi;&lt;/P&gt;&lt;P&gt;I have a squirrelly issue with ssh agent forwarding and I'm out of ideas on how to troubleshoot it.&lt;/P&gt;&lt;P&gt;I have four systems:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* my laptop (dolaptop1) running ubuntu ver 11.1 which holds my private key and is the location of the running ssh-agent.&lt;BR /&gt;* a desktop (fw) running ubuntu ver 12.04&lt;BR /&gt;* Another desktop (samba) running fedora core 8&lt;BR /&gt;* A last desktop (chester) running fedora core 17&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my laptop, I can access all three desktops:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ for h in chester fw samba&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; ssh ${h} hostname&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;chester&lt;BR /&gt;fw&lt;BR /&gt;samba&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From samba and chester, I can access the other two desktops:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# h&lt;BR /&gt;samba&lt;BR /&gt;# for h in fw chester&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; ssh ${h} hostname&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;fw&lt;BR /&gt;chester&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# hostname&lt;BR /&gt;chester&lt;BR /&gt;# for h in fw samba&lt;BR /&gt;do&lt;BR /&gt;ssh ${h} hostname&lt;BR /&gt;done&lt;BR /&gt;fw&lt;BR /&gt;samba&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From fw, I can't access anything:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# ssh samba hostame&lt;BR /&gt;Permission denied (publickey,gssapi-with-mic). # pwd authentication turned off&lt;/P&gt;&lt;P&gt;# ssh chester&lt;BR /&gt;root@chester's password:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ssh directory is locked down:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# ls -ld ~/.ssh&lt;BR /&gt;drwx------ 3 root root 4096 Nov 14 20:22 /root/.ssh/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ssh_config is set to forward the agent:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# grep -v -e ^# -e ^$ /etc/ssh/ssh_config which is the same as samba:&lt;/P&gt;&lt;P&gt;Host *&lt;BR /&gt;ForwardAgent yes&lt;BR /&gt;ForwardX11 yes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the env has the right information for the agent:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# set | grep -i ssh&lt;BR /&gt;_=/etc/ssh/ssh_config&lt;BR /&gt;Pwd=/etc/ssh&lt;BR /&gt;PWD=/etc/ssh&lt;BR /&gt;SSH_AUTH_SOCK=/tmp/ssh-jvNKDF7642/agent.7642&lt;BR /&gt;SSH_CLIENT='192.168.12.51 34743 22'&lt;BR /&gt;SSH_CONNECTION='192.168.12.51 34743 192.168.12.1 22'&lt;BR /&gt;SSH_TTY=/dev/pts/1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've compared the output of ssh -v -v from both the functional and nonfunctional systems. The only thing out of the ordinary is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;debug1: Roaming not allowed by server&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, google searches haven't given me much to check, though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have an idea on what's causing this and/or how to fix it? I appreciate any info/hints/tips/suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doug O'Leary&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2012 18:34:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-agent-forwarding-issue-from-one-host/m-p/5867867#M53950</guid>
      <dc:creator>Doug O'Leary</dc:creator>
      <dc:date>2012-11-15T18:34:37Z</dc:date>
    </item>
  </channel>
</rss>

