<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Transition Technology: Ticket #790: Annesley locked out of puffin</title>
    <link>http://localhost:8080/trac/ticket/790</link>
    <description>&lt;p&gt;
Email from lfd:
&lt;/p&gt;
&lt;pre class="wiki"&gt;Time:     Tue Sep 23 13:47:01 2014 +0100
IP:       XX.XX.XX.XX (HU/Hungary/XXXXXX.catv.pool.telekom.hu)
Failures: 5 (sshd)
Interval: 300 seconds
Blocked:  Permanent Block
Log entries:
Sep 23 13:46:28 puffin sshd[6056]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=XX.XX.XX.XX  user=tn.ftp
Sep 23 13:46:30 puffin sshd[6056]: Failed password for tn.ftp from XX.XX.XX.XX port 54327 ssh2
Sep 23 13:46:33 puffin sshd[6056]: Failed password for tn.ftp from XX.XX.XX.XX port 54327 ssh2
Sep 23 13:46:56 puffin sshd[6409]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=XX.XX.XX.XX  user=anewholm
Sep 23 13:46:58 puffin sshd[6409]: Failed password for anewholm from XX.XX.XX.XX port 54328 ssh2
&lt;/pre&gt;</description>
    <language>en-us</language>
    <image>
      <title>Transition Technology</title>
      <url>/trac/chrome/site/TransitionNetwork-Logo-Web-Small.jpg</url>
      <link>http://localhost:8080/trac/ticket/790</link>
    </image>
    <generator>Trac 0.12.5</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 23 Sep 2014 14:17:39 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/790#comment:1</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/790#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
5 ssh password login failures in 300 seconds caused CSF / LDF to use iptables to block Annesley's IP address on &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer"&gt;PuffinServer&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
This is what we have in the logs, first a successful connection to SFTP using publickey authentication:
&lt;/p&gt;
&lt;pre class="wiki"&gt;Sep 23 13:45:46 puffin sshd[5112]: Accepted publickey for tn.ftp from XX.XX.XX.XX port 54326 ssh2
Sep 23 13:45:46 puffin sshd[5112]: pam_unix(sshd:session): session opened for user tn.ftp by (uid=0)
Sep 23 13:45:46 puffin sshd[5185]: subsystem request for sftp by user tn.ftp
Sep 23 13:45:46 puffin sshd[5112]: pam_unix(sshd:session): session closed for user tn.ftp
&lt;/pre&gt;&lt;p&gt;
Then around 50 seconds later failed attempts to login using a password:
&lt;/p&gt;
&lt;pre class="wiki"&gt;Sep 23 13:46:28 puffin sshd[6056]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=XX.XX.XX.XX  user=tn.ftp
Sep 23 13:46:30 puffin sshd[6056]: Failed password for tn.ftp from XX.XX.XX.XX port 54327 ssh2
Sep 23 13:46:33 puffin sshd[6056]: Failed password for tn.ftp from XX.XX.XX.XX port 54327 ssh2
Sep 23 13:46:33 puffin sshd[6056]: Disconnecting: Too many authentication failures for tn.ftp [preauth]
Sep 23 13:46:33 puffin sshd[6056]: PAM 1 more authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=XX.XX.XX.XX  user=tn.ftp
Sep 23 13:46:56 puffin sshd[6409]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=XX.XX.XX.XX  user=anewholm
Sep 23 13:46:58 puffin sshd[6409]: Failed password for anewholm from XX.XX.XX.XX port 54328 ssh2
&lt;/pre&gt;&lt;p&gt;
Following the notes at &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer#Falsepositives"&gt;wiki:PuffinServer#Falsepositives&lt;/a&gt; I have unblocked Annesley's current IP address:
&lt;/p&gt;
&lt;pre class="wiki"&gt;csf -g XX.XX.XX.XX
  Chain            num   pkts bytes target     prot opt in     out     source               destination
  DENYIN           100    126  5544 DROP       all  --  !lo    *       XX.XX.XX.XX       0.0.0.0/0
  DENYOUT          100      0     0 LOGDROPOUT  all  --  *      !lo     0.0.0.0/0            XX.XX.XX.XX
  csf.deny: XX.XX.XX.XX # lfd: (sshd) Failed SSH login from XX.XX.XX.XX (HU/Hungary/XXXXXX.catv.pool.telekom.hu): 5 in the last 300 secs - Tue Sep 23 13:47:01 2014
csf -dr XX.XX.XX.XX
  Removing rule...
  DROP  all opt -- in !lo out *  XX.XX.XX.XX  -&amp;gt; 0.0.0.0/0
  LOGDROPOUT  all opt -- in * out !lo  0.0.0.0/0  -&amp;gt; XX.XX.XX.XX
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>annesley</dc:creator>

      <pubDate>Wed, 24 Sep 2014 10:39:14 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/790#comment:2</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/790#comment:2</guid>
      <description>
        &lt;p&gt;
it's my Dolphin file explorer failing again.
could we place the un-encrypted public key on puffin also?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 24 Sep 2014 11:14:52 GMT</pubDate>
      <title>cc, hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/790#comment:3</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/790#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;cc&lt;/strong&gt;
              &lt;em&gt;ed&lt;/em&gt; added
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.15&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.25&lt;/em&gt; to &lt;em&gt;0.4&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/790#comment:2" title="Comment 2 for Ticket #790"&gt;annesley&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
it's my Dolphin file explorer failing again.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
It works for me -- I just installed Dolphin and can connect to servers without out a problem using a passphrase protected ssh key and ssh-agent -- I think you simply need to start using ssh-agent:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="http://mah.everybody.org/docs/ssh"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://mah.everybody.org/docs/ssh&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;blockquote class="citation"&gt;
&lt;p&gt;
could we place the un-encrypted public key on puffin also?
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
I'm not sure that is a good idea since it's the production server.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>annesley</dc:creator>

      <pubDate>Wed, 24 Sep 2014 13:51:58 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/790#comment:4</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/790#comment:4</guid>
      <description>
        &lt;p&gt;
yep, i agree. just trying my luck ;)
&lt;/p&gt;
&lt;p&gt;
i have to sort out my Dolphin issues. Dolphin does seem to connect ok initially. it's after a few directory navigations that things seem to suddenly go Pete Tong.
&lt;/p&gt;
&lt;p&gt;
just setup ssh-agent. seems good. handled the passphrase for me. that now means that my laptop has password-less access to Parrot of course which kinda defeats the purpose...
&lt;/p&gt;
&lt;p&gt;
thanks :)
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>