<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Transition Technology: Ticket #901: Enable SSH access to PuffinServer for Ade</title>
    <link>http://localhost:8080/trac/ticket/901</link>
    <description>&lt;p&gt;
This is a ticket to track the time spent sorting out SSH access for Ade to &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer"&gt;PuffinServer&lt;/a&gt;.
&lt;/p&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/901</link>
    </image>
    <generator>Trac 0.12.5</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 03 Feb 2016 13:50:15 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/901#comment:1</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/901#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.45&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.45&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Following the steps taken &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/682#comment:1" title="maintenance: Create Trac &amp;amp; Wiki account for Paul (closed: fixed)"&gt;for Paul&lt;/a&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;sudo -i
adduser ade --add_extra_groups sudo
&lt;/pre&gt;&lt;p&gt;
Following &lt;a class="ext-link" href="https://unix.stackexchange.com/a/84122"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;this to convert SSH2 to OpenSSH&lt;/a&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /home/ade/
mkdir .ssh
chown ade:ade .ssh/
chmod 700 .ssh/
vi ssh2.pub
ssh-keygen -i -f ssh2.pub &amp;gt; /home/ade/.ssh/authorized_keys
chown ade:ade /home/ade/.ssh/authorized_keys
chmod 600 /home/ade/.ssh/authorized_keys
&lt;/pre&gt;&lt;p&gt;
Ade: You should now be able to connect using these details:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Server:&lt;/strong&gt; puffin.transitionnetwork.org
&lt;/li&gt;&lt;li&gt;&lt;strong&gt;User:&lt;/strong&gt; ade
&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Port:&lt;/strong&gt; 22
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Once you are in you need to type:
&lt;/p&gt;
&lt;pre class="wiki"&gt;sudo -i
&lt;/pre&gt;&lt;p&gt;
This will make you the &lt;tt&gt;root&lt;/tt&gt; user, you need to do this as BOA has wrecked the ability of non-root users to do anything.
&lt;/p&gt;
&lt;p&gt;
To get to the root of the website and list the files / directories:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /data/disk/tn/platforms/transitionnetwork.org/
ls -lah
&lt;/pre&gt;&lt;p&gt;
To login to MySQL to see the database:
&lt;/p&gt;
&lt;pre class="wiki"&gt;mysql transitionnetw_0
&lt;/pre&gt;&lt;p&gt;
Once you have done that you can use the usual MySQL commands, eg:
&lt;/p&gt;
&lt;pre class="wiki"&gt;MariaDB [transitionnetw_0]&amp;gt; SHOW tables;
MariaDB [transitionnetw_0]&amp;gt; DESCRIBE content_field_initiative;
&lt;/pre&gt;&lt;p&gt;
If you want a dump of the whole database you might as well take the last backup copy (to save dumping a new copy, the backup is created at 1am each day), this is &lt;tt&gt;/var/backups/mysql/sqldump/transitionnetw_0.sql&lt;/tt&gt;
&lt;/p&gt;
&lt;p&gt;
If you need further help feel free to ask and please don't break anything :-)
&lt;/p&gt;
&lt;p&gt;
PS I hope you used a passphrase to protect your ssh key pair when you generated it.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 03 Feb 2016 14:31:01 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/901#comment:2</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/901#comment:2</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.1&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.45&lt;/em&gt; to &lt;em&gt;0.55&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Ade, I see you got in OK:
&lt;/p&gt;
&lt;pre class="wiki"&gt;tail -f /var/log/auth.log | grep ade
Feb  3 14:22:13 puffin sshd[26032]: Accepted publickey for ade from XXX.XXX.XXX.XXX port 59842 ssh2
Feb  3 14:22:13 puffin sshd[26032]: pam_unix(sshd:session): session opened for user ade by (uid=0)
Feb  3 14:22:58 puffin sudo:      ade : TTY=pts/3 ; PWD=/home/ade ; USER=root ; COMMAND=/bin/bash
Feb  3 14:22:58 puffin sudo: pam_unix(sudo:session): session opened for user root by ade(uid=0)
Feb  3 14:26:48 puffin sshd[28029]: Accepted publickey for ade from XXX.XXX.XXX.XXX port 59860 ssh2
Feb  3 14:26:48 puffin sshd[28029]: pam_unix(sshd:session): session opened for user ade by (uid=0)
Feb  3 14:26:48 puffin sshd[28037]: subsystem request for sftp by user ade
&lt;/pre&gt;&lt;p&gt;
I don't know how much joy you will have with SFTP as user &lt;tt&gt;ade&lt;/tt&gt;, best use user &lt;strong&gt;tn.ftp&lt;/strong&gt; for SFTP, I have added your public key to that account:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cat /home/ade/.ssh/authorized_keys &amp;gt;&amp;gt; /home/tn.ftp/.ssh/authorized_keys
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>ade</dc:creator>

      <pubDate>Wed, 03 Feb 2016 14:35:05 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/901#comment:3</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/901#comment:3</guid>
      <description>
        &lt;pre class="wiki"&gt;Hi Chris,
many thanks for that am in and have been let loose.
However, on login in via SFTP using key I get in, but only have access to
the .SSH key folder?
I don't want to start playing with folder settings via SSH so could I
request that you do this for me so that I can gain SFTP access to the
 /data/disk/tn/platforms/transitionnetwork.org/ folder?
many thanks
Ade
On 3 February 2016 at 13:50, Transition Technology Trac &amp;lt;
trac@tech.transitionnetwork.org&amp;gt; wrote:
&amp;gt; #901: Enable SSH access to PuffinServer for Ade
&amp;gt; -------------------------------------+-------------------------------------
&amp;gt;            Reporter:  chris          |                      Owner:  chris
&amp;gt;                Type:  maintenance    |                     Status:  new
&amp;gt;            Priority:  major          |                  Milestone:
&amp;gt;           Component:  Live server    |  Maintenance
&amp;gt;            Keywords:                 |                 Resolution:
&amp;gt; Add Hours to Ticket:  0.45           |  Estimated Number of Hours:  0.0
&amp;gt;         Total Hours:  0              |                  Billable?:  1
&amp;gt; -------------------------------------+-------------------------------------
&amp;gt; Changes (by chris):
&amp;gt;
&amp;gt;  * hours:  0.0 =&amp;gt; 0.45
&amp;gt;  * totalhours:  0.0 =&amp;gt; 0.45
&amp;gt;
&amp;gt;
&amp;gt; Comment:
&amp;gt;
&amp;gt;  Following the steps taken [ticket:682#comment:1 for Paul]:
&amp;gt;
&amp;gt;  {{{
&amp;gt;  sudo -i
&amp;gt;  adduser ade --add_extra_groups sudo
&amp;gt;  }}}
&amp;gt;
&amp;gt;  Following [https://unix.stackexchange.com/a/84122 this to convert SSH2 to
&amp;gt;  OpenSSH]:
&amp;gt;
&amp;gt;  {{{
&amp;gt;  cd /home/ade/
&amp;gt;  mkdir .ssh
&amp;gt;  chown ade:ade .ssh/
&amp;gt;  chmod 700 .ssh/
&amp;gt;  vi ssh2.pub
&amp;gt;  ssh-keygen -i -f ssh2.pub &amp;gt; /home/ade/.ssh/authorized_keys
&amp;gt;  chown ade:ade /home/ade/.ssh/authorized_keys
&amp;gt;  chmod 600 /home/ade/.ssh/authorized_keys
&amp;gt;  }}}
&amp;gt;
&amp;gt;  Ade: You should now be able to connect using these details:
&amp;gt;
&amp;gt;  * '''Server:''' puffin.transitionnetwork.org
&amp;gt;  * '''User:''' ade
&amp;gt;  * '''Port:''' 22
&amp;gt;
&amp;gt;  Once you are in you need to type:
&amp;gt;
&amp;gt;  {{{
&amp;gt;  sudo -i
&amp;gt;  }}}
&amp;gt;
&amp;gt;  This will make you the `root` user, you need to do this as BOA has wrecked
&amp;gt;  the ability of non-root users to do anything.
&amp;gt;
&amp;gt;  To get to the root of the website and list the files / directories:
&amp;gt;
&amp;gt;  {{{
&amp;gt;  cd /data/disk/tn/platforms/transitionnetwork.org/
&amp;gt;  ls -lah
&amp;gt;  }}}
&amp;gt;
&amp;gt;  To login to MySQL to see the database:
&amp;gt;
&amp;gt;  {{{
&amp;gt;  mysql transitionnetw_0
&amp;gt;  }}}
&amp;gt;
&amp;gt;  Once you have done that you can use the usual MySQL commands, eg:
&amp;gt;
&amp;gt;  {{{
&amp;gt;  MariaDB [transitionnetw_0]&amp;gt; SHOW tables;
&amp;gt;
&amp;gt;  MariaDB [transitionnetw_0]&amp;gt; DESCRIBE content_field_initiative;
&amp;gt;  }}}
&amp;gt;
&amp;gt;  If you want a dump of the whole database you might as well take the last
&amp;gt;  backup copy (to save dumping a new copy, the backup is created at 1am each
&amp;gt;  day), this is `/var/backups/mysql/sqldump/transitionnetw_0.sql`
&amp;gt;
&amp;gt;  If you need further help feel free to ask and please don't break anything
&amp;gt;  :-)
&amp;gt;
&amp;gt;  PS I hope you used a passphrase to protect your ssh key pair when you
&amp;gt;  generated it.
&amp;gt;
&amp;gt; --
&amp;gt; Ticket URL: &amp;lt;https://tech.transitionnetwork.org/trac/ticket/901#comment:1&amp;gt;
&amp;gt; Transition Technology &amp;lt;https://tech.transitionnetwork.org/trac&amp;gt;
&amp;gt; Support and issues tracking for the Transition Network Web Project.
&amp;gt;
--
Ade Stuart
Web Manager - Transition network
07595 331877
The Transition Network is a registered charity
address: 43 Fore St, Totnes, Devon, TQ9 5HN, UK
website: www.transitionnetwork.org
TN company no: 6135675 TN charity no: 1128675
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 03 Feb 2016 14:38:45 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/901#comment:4</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/901#comment:4</guid>
      <description>
        &lt;p&gt;
Ade, our email just crossed, see &lt;a class="new ticket" href="http://localhost:8080/trac/ticket/901#comment:2" title="maintenance: Enable SSH access to PuffinServer for Ade (new)"&gt;ticket:901#comment:2&lt;/a&gt; -- if you use &lt;tt&gt;tn.ftp&lt;/tt&gt; as the username you should find SFTP is working OK, it doesn't work for the user &lt;tt&gt;ade&lt;/tt&gt; due to BOA, intentionally,  basically wrecking all non-root accounts as a security "feature"...
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>ade</dc:creator>

      <pubDate>Wed, 03 Feb 2016 14:40:03 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/901#comment:5</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/901#comment:5</guid>
      <description>
        &lt;pre class="wiki"&gt;many thanks for that Chris,
Tried using tn.ftp account and get an error saying 'Received unexpected
end-of-file from SFTP server'
any thoughts?
On 3 February 2016 at 14:38, Transition Technology Trac &amp;lt;
trac@tech.transitionnetwork.org&amp;gt; wrote:
&amp;gt; #901: Enable SSH access to PuffinServer for Ade
&amp;gt; -------------------------------------+-------------------------------------
&amp;gt;            Reporter:  chris          |                      Owner:  chris
&amp;gt;                Type:  maintenance    |                     Status:  new
&amp;gt;            Priority:  major          |                  Milestone:
&amp;gt;           Component:  Live server    |  Maintenance
&amp;gt;            Keywords:                 |                 Resolution:
&amp;gt; Add Hours to Ticket:  0              |  Estimated Number of Hours:  0.0
&amp;gt;         Total Hours:  0.55           |                  Billable?:  1
&amp;gt; -------------------------------------+-------------------------------------
&amp;gt;
&amp;gt; Comment (by chris):
&amp;gt;
&amp;gt;  Ade, our email just crossed, see ticket:901#comment:2 -- if you use
&amp;gt;  `tn.ftp` as the username you should find SFTP is working OK, it doesn't
&amp;gt;  work for the user `ade` due to BOA, intentionally,  basically wrecking all
&amp;gt;  non-root accounts as a security "feature"...
&amp;gt;
&amp;gt; --
&amp;gt; Ticket URL: &amp;lt;https://tech.transitionnetwork.org/trac/ticket/901#comment:4&amp;gt;
&amp;gt; Transition Technology &amp;lt;https://tech.transitionnetwork.org/trac&amp;gt;
&amp;gt; Support and issues tracking for the Transition Network Web Project.
&amp;gt;
--
Ade Stuart
Web Manager - Transition network
07595 331877
The Transition Network is a registered charity
address: 43 Fore St, Totnes, Devon, TQ9 5HN, UK
website: www.transitionnetwork.org
TN company no: 6135675 TN charity no: 1128675
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>ade</dc:creator>

      <pubDate>Wed, 03 Feb 2016 14:55:03 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/901#comment:6</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/901#comment:6</guid>
      <description>
        &lt;pre class="wiki"&gt;Hi Chris,
Appears if I try to login via ssh using the tn.ftp user, its has an aged
password and is asking me to reset. Think you may want to do this and keep
a note of it.
A
On 3 February 2016 at 14:40, Transition Technology Trac &amp;lt;
trac@tech.transitionnetwork.org&amp;gt; wrote:
&amp;gt; #901: Enable SSH access to PuffinServer for Ade
&amp;gt; -------------------------------------+-------------------------------------
&amp;gt;            Reporter:  chris          |                      Owner:  chris
&amp;gt;                Type:  maintenance    |                     Status:  new
&amp;gt;            Priority:  major          |                  Milestone:
&amp;gt;           Component:  Live server    |  Maintenance
&amp;gt;            Keywords:                 |                 Resolution:
&amp;gt; Add Hours to Ticket:  0              |  Estimated Number of Hours:  0.0
&amp;gt;         Total Hours:  0.55           |                  Billable?:  1
&amp;gt; -------------------------------------+-------------------------------------
&amp;gt;
&amp;gt; Comment (by ade):
&amp;gt;
&amp;gt;  {{{
&amp;gt;  many thanks for that Chris,
&amp;gt;  Tried using tn.ftp account and get an error saying 'Received unexpected
&amp;gt;  end-of-file from SFTP server'
&amp;gt;
&amp;gt;  any thoughts?
&amp;gt;
&amp;gt;  On 3 February 2016 at 14:38, Transition Technology Trac &amp;lt;
&amp;gt;  trac@tech.transitionnetwork.org&amp;gt; wrote:
&amp;gt;
&amp;gt;  &amp;gt; #901: Enable SSH access to PuffinServer for Ade
&amp;gt;  &amp;gt;
&amp;gt;
&amp;gt;  -------------------------------------+-------------------------------------
&amp;gt;  &amp;gt;            Reporter:  chris          |                      Owner:
&amp;gt;  chris
&amp;gt;  &amp;gt;                Type:  maintenance    |                     Status:  new
&amp;gt;  &amp;gt;            Priority:  major          |                  Milestone:
&amp;gt;  &amp;gt;           Component:  Live server    |  Maintenance
&amp;gt;  &amp;gt;            Keywords:                 |                 Resolution:
&amp;gt;  &amp;gt; Add Hours to Ticket:  0              |  Estimated Number of Hours:  0.0
&amp;gt;  &amp;gt;         Total Hours:  0.55           |                  Billable?:  1
&amp;gt;  &amp;gt;
&amp;gt;
&amp;gt;  -------------------------------------+-------------------------------------
&amp;gt;  &amp;gt;
&amp;gt;  &amp;gt; Comment (by chris):
&amp;gt;  &amp;gt;
&amp;gt;  &amp;gt;  Ade, our email just crossed, see ticket:901#comment:2 -- if you use
&amp;gt;  &amp;gt;  `tn.ftp` as the username you should find SFTP is working OK, it doesn't
&amp;gt;  &amp;gt;  work for the user `ade` due to BOA, intentionally,  basically wrecking
&amp;gt;  all
&amp;gt;  &amp;gt;  non-root accounts as a security "feature"...
&amp;gt;  &amp;gt;
&amp;gt;  &amp;gt; --
&amp;gt;  &amp;gt; Ticket URL:
&amp;gt;  &amp;lt;https://tech.transitionnetwork.org/trac/ticket/901#comment:4&amp;gt;
&amp;gt;  &amp;gt; Transition Technology &amp;lt;https://tech.transitionnetwork.org/trac&amp;gt;
&amp;gt;  &amp;gt; Support and issues tracking for the Transition Network Web Project.
&amp;gt;  &amp;gt;
&amp;gt;
&amp;gt;
&amp;gt;
&amp;gt;  --
&amp;gt;  Ade Stuart
&amp;gt;  Web Manager - Transition network
&amp;gt;
&amp;gt;  07595 331877
&amp;gt;
&amp;gt;  The Transition Network is a registered charity
&amp;gt;  address: 43 Fore St, Totnes, Devon, TQ9 5HN, UK
&amp;gt;  website: www.transitionnetwork.org
&amp;gt;  TN company no: 6135675 TN charity no: 1128675
&amp;gt;
&amp;gt;  }}}
&amp;gt;
&amp;gt; --
&amp;gt; Ticket URL: &amp;lt;https://tech.transitionnetwork.org/trac/ticket/901#comment:5&amp;gt;
&amp;gt; Transition Technology &amp;lt;https://tech.transitionnetwork.org/trac&amp;gt;
&amp;gt; Support and issues tracking for the Transition Network Web Project.
&amp;gt;
--
Ade Stuart
Web Manager - Transition network
07595 331877
The Transition Network is a registered charity
address: 43 Fore St, Totnes, Devon, TQ9 5HN, UK
website: www.transitionnetwork.org
TN company no: 6135675 TN charity no: 1128675
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 03 Feb 2016 14:59:06 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/901#comment:7</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/901#comment:7</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.1&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.55&lt;/em&gt; to &lt;em&gt;0.65&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
It doesn't work for me either, looks like it might be due to the shell:
&lt;/p&gt;
&lt;pre class="wiki"&gt;grep tn.ftp /etc/passwd
tn.ftp:x:999:100::/home/tn.ftp:/usr/bin/mysecureshell
su - tn.ftp
You are required to change your password immediately (password aged)
su: Authentication token is no longer valid; new one required
(Ignored)
      ======== Welcome to the Aegir, Drush and Compass Shell ========
         Type '?' or 'help' to get the list of allowed commands
             Note that not all Drush commands are available
       Use RVM and Bundler to manage all your Compass gems! Example:
             `rvm all do gem install --conservative compass`
       To install RVM use control file and re-login after 15 minutes
                 `touch ~/static/control/compass.info`
&lt;/pre&gt;&lt;p&gt;
So, I have reset it and now SFTP works for me.
&lt;/p&gt;
&lt;pre class="wiki"&gt;passwd tn.ftp
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
&lt;/pre&gt;&lt;p&gt;
From work:
&lt;/p&gt;
&lt;pre class="wiki"&gt;
sftp tn.ftp@puffin.transitionnetwork.org
Host key fingerprint is 92:19:87:53:08:38:d9:de:c3:a1:d3:97:75:bf:83:2c
+---[RSA 2048]----+
|   +.. ..        |
|  + . oo  . .    |
|   o =+..o . .   |
|    + =*o     .  |
|     .+oS  . . . |
|       .  E o o  |
|           .   . |
|                 |
|                 |
+-----------------+
Connected to puffin.transitionnetwork.org.
sftp&amp;gt; ls
backups    clients    platforms  static     users
sftp&amp;gt;
&lt;/pre&gt;&lt;p&gt;
SSHFS also works:
&lt;/p&gt;
&lt;pre class="wiki"&gt;mkdir puffin
sshfs tn.ftp@puffin.transitionnetwork.org: puffin/
ls puffin/
backups  clients  platforms  static  users
&lt;/pre&gt;&lt;p&gt;
Try again?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 03 Feb 2016 15:00:24 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/901#comment:8</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/901#comment:8</guid>
      <description>
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/901#comment:6" title="Comment 6 for Ticket #901"&gt;ade&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Appears if I try to login via ssh using the tn.ftp user, its has an aged
password and is asking me to reset. Think you may want to do this and keep
a note of it.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Yes that was the issue, our emails crossed again, I have set it to a random one, no need to keep it since we are using keys and we can reset it as the root user at any time as needs be.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>ade</dc:creator>

      <pubDate>Wed, 03 Feb 2016 15:05:04 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/901#comment:9</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/901#comment:9</guid>
      <description>
        &lt;pre class="wiki"&gt;awesome, many thanks for this Chris.
Will let you know or contact paul if all is not obvious.
cheers again
A
On 3 February 2016 at 15:00, Transition Technology Trac &amp;lt;
trac@tech.transitionnetwork.org&amp;gt; wrote:
&amp;gt; #901: Enable SSH access to PuffinServer for Ade
&amp;gt; -------------------------------------+-------------------------------------
&amp;gt;            Reporter:  chris          |                      Owner:  chris
&amp;gt;                Type:  maintenance    |                     Status:  new
&amp;gt;            Priority:  major          |                  Milestone:
&amp;gt;           Component:  Live server    |  Maintenance
&amp;gt;            Keywords:                 |                 Resolution:
&amp;gt; Add Hours to Ticket:  0              |  Estimated Number of Hours:  0.0
&amp;gt;         Total Hours:  0.65           |                  Billable?:  1
&amp;gt; -------------------------------------+-------------------------------------
&amp;gt;
&amp;gt; Comment (by chris):
&amp;gt;
&amp;gt;  Replying to [comment:6 ade]:
&amp;gt;  &amp;gt;
&amp;gt;  &amp;gt; Appears if I try to login via ssh using the tn.ftp user, its has an aged
&amp;gt;  &amp;gt; password and is asking me to reset. Think you may want to do this and
&amp;gt;  keep
&amp;gt;  &amp;gt; a note of it.
&amp;gt;
&amp;gt;  Yes that was the issue, our emails crossed again, I have set it to a
&amp;gt;  random one, no need to keep it since we are using keys and we can reset it
&amp;gt;  as the root user at any time as needs be.
&amp;gt;
&amp;gt; --
&amp;gt; Ticket URL: &amp;lt;https://tech.transitionnetwork.org/trac/ticket/901#comment:8&amp;gt;
&amp;gt; Transition Technology &amp;lt;https://tech.transitionnetwork.org/trac&amp;gt;
&amp;gt; Support and issues tracking for the Transition Network Web Project.
&amp;gt;
--
Ade Stuart
Web Manager - Transition network
07595 331877
The Transition Network is a registered charity
address: 43 Fore St, Totnes, Devon, TQ9 5HN, UK
website: www.transitionnetwork.org
TN company no: 6135675 TN charity no: 1128675
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>ade</dc:creator>

      <pubDate>Thu, 04 Feb 2016 11:35:05 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/901#comment:10</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/901#comment:10</guid>
      <description>
        &lt;pre class="wiki"&gt;Hi Chris,
It appears I have broken the 3 errors and our out rule...And it told me it
was going to tell tales after each rule been broken!
It doesn't seem to like  cd
/data/disk/tn/platforms/transitionnetwork.org/ which
was weird as this was one you recommended. Anyways not a biggy, but you
will be receiving or have received tales of woe from your server....
Not often I get told that I'm being snitched on by a server and then logged
out!
Onwards and upwards
A
On 3 February 2016 at 15:05, Transition Technology Trac &amp;lt;
trac@tech.transitionnetwork.org&amp;gt; wrote:
&amp;gt; #901: Enable SSH access to PuffinServer for Ade
&amp;gt; -------------------------------------+-------------------------------------
&amp;gt;            Reporter:  chris          |                      Owner:  chris
&amp;gt;                Type:  maintenance    |                     Status:  new
&amp;gt;            Priority:  major          |                  Milestone:
&amp;gt;           Component:  Live server    |  Maintenance
&amp;gt;            Keywords:                 |                 Resolution:
&amp;gt; Add Hours to Ticket:  0              |  Estimated Number of Hours:  0.0
&amp;gt;         Total Hours:  0.65           |                  Billable?:  1
&amp;gt; -------------------------------------+-------------------------------------
&amp;gt;
&amp;gt; Comment (by ade):
&amp;gt;
&amp;gt;  {{{
&amp;gt;  awesome, many thanks for this Chris.
&amp;gt;
&amp;gt;  Will let you know or contact paul if all is not obvious.
&amp;gt;
&amp;gt;  cheers again
&amp;gt;  A
&amp;gt;
&amp;gt;  On 3 February 2016 at 15:00, Transition Technology Trac &amp;lt;
&amp;gt;  trac@tech.transitionnetwork.org&amp;gt; wrote:
&amp;gt;
&amp;gt;  &amp;gt; #901: Enable SSH access to PuffinServer for Ade
&amp;gt;  &amp;gt;
&amp;gt;
&amp;gt;  -------------------------------------+-------------------------------------
&amp;gt;  &amp;gt;            Reporter:  chris          |                      Owner:
&amp;gt;  chris
&amp;gt;  &amp;gt;                Type:  maintenance    |                     Status:  new
&amp;gt;  &amp;gt;            Priority:  major          |                  Milestone:
&amp;gt;  &amp;gt;           Component:  Live server    |  Maintenance
&amp;gt;  &amp;gt;            Keywords:                 |                 Resolution:
&amp;gt;  &amp;gt; Add Hours to Ticket:  0              |  Estimated Number of Hours:  0.0
&amp;gt;  &amp;gt;         Total Hours:  0.65           |                  Billable?:  1
&amp;gt;  &amp;gt;
&amp;gt;
&amp;gt;  -------------------------------------+-------------------------------------
&amp;gt;  &amp;gt;
&amp;gt;  &amp;gt; Comment (by chris):
&amp;gt;  &amp;gt;
&amp;gt;  &amp;gt;  Replying to [comment:6 ade]:
&amp;gt;  &amp;gt;  &amp;gt;
&amp;gt;  &amp;gt;  &amp;gt; Appears if I try to login via ssh using the tn.ftp user, its has an
&amp;gt;  aged
&amp;gt;  &amp;gt;  &amp;gt; password and is asking me to reset. Think you may want to do this and
&amp;gt;  &amp;gt;  keep
&amp;gt;  &amp;gt;  &amp;gt; a note of it.
&amp;gt;  &amp;gt;
&amp;gt;  &amp;gt;  Yes that was the issue, our emails crossed again, I have set it to a
&amp;gt;  &amp;gt;  random one, no need to keep it since we are using keys and we can reset
&amp;gt;  it
&amp;gt;  &amp;gt;  as the root user at any time as needs be.
&amp;gt;  &amp;gt;
&amp;gt;  &amp;gt; --
&amp;gt;  &amp;gt; Ticket URL:
&amp;gt;  &amp;lt;https://tech.transitionnetwork.org/trac/ticket/901#comment:8&amp;gt;
&amp;gt;  &amp;gt; Transition Technology &amp;lt;https://tech.transitionnetwork.org/trac&amp;gt;
&amp;gt;  &amp;gt; Support and issues tracking for the Transition Network Web Project.
&amp;gt;  &amp;gt;
&amp;gt;
&amp;gt;
&amp;gt;
&amp;gt;  --
&amp;gt;  Ade Stuart
&amp;gt;  Web Manager - Transition network
&amp;gt;
&amp;gt;  07595 331877
&amp;gt;
&amp;gt;  The Transition Network is a registered charity
&amp;gt;  address: 43 Fore St, Totnes, Devon, TQ9 5HN, UK
&amp;gt;  website: www.transitionnetwork.org
&amp;gt;  TN company no: 6135675 TN charity no: 1128675
&amp;gt;
&amp;gt;  }}}
&amp;gt;
&amp;gt; --
&amp;gt; Ticket URL: &amp;lt;https://tech.transitionnetwork.org/trac/ticket/901#comment:9&amp;gt;
&amp;gt; Transition Technology &amp;lt;https://tech.transitionnetwork.org/trac&amp;gt;
&amp;gt; Support and issues tracking for the Transition Network Web Project.
&amp;gt;
--
Ade Stuart
Web Manager - Transition network
07595 331877
The Transition Network is a registered charity
address: 43 Fore St, Totnes, Devon, TQ9 5HN, UK
website: www.transitionnetwork.org
TN company no: 6135675 TN charity no: 1128675
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 04 Feb 2016 12:08:06 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/901#comment:11</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/901#comment:11</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.3&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.65&lt;/em&gt; to &lt;em&gt;0.95&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/901#comment:10" title="Comment 10 for Ticket #901"&gt;ade&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
It appears I have broken the 3 errors and our out rule...And it told me it
was going to tell tales after each rule been broken!
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
I did get a lfd email alert earlier to say you has logged in, following &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer#Falsepositives"&gt;PuffinServer#Falsepositives&lt;/a&gt; I have checked that your IP hasn't been blocked -- it hasn't.
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
It doesn't seem to like  cd
/data/disk/tn/platforms/transitionnetwork.org/ which
was weird as this was one you recommended.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
I expect that the shell that BOA has configured for this user:
&lt;/p&gt;
&lt;pre class="wiki"&gt;grep tn.ftp /etc/passwd
tn.ftp:x:999:100::/home/tn.ftp:/usr/bin/mysecureshell
&lt;/pre&gt;&lt;p&gt;
Has a chroot or something like that. According to &lt;a class="ext-link" href="https://mysecureshell.readthedocs.org/en/latest/configuration.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;the docs&lt;/a&gt; the config is in &lt;tt&gt;/etc/ssh/sftp_config&lt;/tt&gt; and that contains:
&lt;/p&gt;
&lt;pre class="wiki"&gt;&amp;lt;Default&amp;gt;
  GlobalDownload         0
  GlobalUpload           0
  Download               0
  Upload                 0
  StayAtHome             true
  VirtualChroot          true
  LimitConnection        0
  LimitConnectionByUser  5
  LimitConnectionByIP    5
  Home                   /home/$USER
  IdleTimeOut            15m
  ResolveIP              false
  IgnoreHidden           true
  HideNoAccess           true
  DefaultRights          0664 0775
  MinimumRights          0664 0775
&amp;lt;/Default&amp;gt;
&amp;lt;Group lshellg&amp;gt;
  Shell                  /usr/bin/lshell
&amp;lt;/Group&amp;gt;
&lt;/pre&gt;&lt;p&gt;
So that means when you login you are restricted to &lt;tt&gt;/home/tn.ftp&lt;/tt&gt; and that directory contains some symlinks to things:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /home/tn.ftp/
ls -lah
total 52K
drwx------  9 tn.ftp users 4.0K Dec  4 19:04 ./
drwx--x--x 15 root   root  4.0K Feb  3 13:30 ../
-rw-------  1 tn.ftp users  321 Jun 30  2014 .bash_history
drwx------  2 tn.ftp users 4.0K Apr  7  2013 .bazaar/
-rw-rw-r--  1 tn.ftp users 4.5K May 31  2013 .bzr.log
drwxr-sr-x  3 tn.ftp users 4.0K Dec  4 19:05 .drush/
-rw-rw-r--  1 tn.ftp users 1.8K Feb  4 11:24 .lhistory
drwx------  2 tn.ftp users 4.0K Feb  3 14:41 .ssh/
drwxrwxr-x  3 tn.ftp users 4.0K May 29  2013 .subversion/
drwxr-sr-x  3 tn.ftp users 4.0K Dec 23 03:00 .tmp/
lrwxrwxrwx  1 root   root    21 Dec 15  2012 backups -&amp;gt; /data/disk/tn/backups/
lrwxrwxrwx  1 root   root    21 Dec 15  2012 clients -&amp;gt; /data/disk/tn/clients/
drwxr-xr-x  7 tn     users 4.0K Dec 23 03:00 platforms/
lrwxrwxrwx  1 root   root    20 Dec 15  2012 static -&amp;gt; /data/disk/tn/static/
drwx------  2 tn.ftp users 4.0K Aug  4  2015 users/
&lt;/pre&gt;&lt;p&gt;
And looking at the &lt;tt&gt;clients&lt;/tt&gt; symlink:
&lt;/p&gt;
&lt;pre class="wiki"&gt;ls -lah /data/disk/tn/clients/tnusers/
total 28K
drwxr-x--- 2 tn users 4.0K Jun 18  2015 ./
drwxr-x--- 4 tn users 4.0K May  1  2015 ../
lrwxrwxrwx 1 tn users  113 Mar 19  2015 booker-stage-20150319.news.transitionnetwork.org -&amp;gt; /data/disk/tn/static/transition-network-d6-35-s001b-booker/sites/booker-stage-20150319.news.transitionnetwork.org/
lrwxrwxrwx 1 tn users  108 Jun 18  2015 booker-stage-20150319.transitionnetwork.org -&amp;gt; /data/disk/tn/static/transition-network-d6-35-s001b-booker/sites/booker-stage-20150319.transitionnetwork.org/
lrwxrwxrwx 1 tn users  103 Jun 18  2015 booker-stage-sam.transitionnetwork.org -&amp;gt; /data/disk/tn/static/transition-network-d6-35-s001b-booker/sites/booker-stage-sam.transitionnetwork.org/
lrwxrwxrwx 1 tn users   91 Mar 19  2015 news.transitionnetwork.org -&amp;gt; /data/disk/tn/static/transition-network-d6-35-p001b-booker/sites/news.transitionnetwork.org/
lrwxrwxrwx 1 tn users   29 Jan 16  2014 tnusers -&amp;gt; /data/disk/tn/clients/tnusers/
lrwxrwxrwx 1 tn users   90 Mar 19  2015 www.transitionnetwork.org -&amp;gt; /data/disk/tn/static/transition-network-d6-35-p001b-booker/sites/www.transitionnetwork.org/
&lt;/pre&gt;&lt;p&gt;
There are links to dev versions of the site but not the live site. I'm afraid I have no idea how BOA creates or manages these symlinks, I have manually created a new one:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /home/tn.ftp
ln -s /data/disk/tn/platforms/transitionnetwork.org
&lt;/pre&gt;&lt;p&gt;
So you should now be able to get to the live site:
&lt;/p&gt;
&lt;pre class="wiki"&gt;sftp tn.ftp@puffin.transitionnetwork.org
Host key fingerprint is 92:19:87:53:08:38:d9:de:c3:a1:d3:97:75:bf:83:2c
+---[RSA 2048]----+
|   +.. ..        |
|  + . oo  . .    |
|   o =+..o . .   |
|    + =*o     .  |
|     .+oS  . . . |
|       .  E o o  |
|           .   . |
|                 |
|                 |
+-----------------+
Connected to puffin.transitionnetwork.org.
sftp&amp;gt; cd transitionnetwork.org/
sftp&amp;gt; ls
CHANGELOG.txt                   COPYRIGHT.txt                   INSTALL.mysql.txt               INSTALL.pgsql.txt
INSTALL.txt                     LICENSE.txt                     MAINTAINERS.txt                 UPGRADE.txt
cron.php                        includes                        index.php                       install.php
misc                            modules                         profiles                        robots.txt
scripts                         sites                           themes                          transitionnetwork.org-d6.make
update.php
sftp&amp;gt;
&lt;/pre&gt;&lt;blockquote class="citation"&gt;
&lt;p&gt;
Anyways not a biggy, but you
will be receiving or have received tales of woe from your server....
Not often I get told that I'm being snitched on by a server and then logged
out!
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
I haven't had any alerts other than the login one.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>