This project offers [[w:OpenSSH|OpenSSH]] (including daemon), precompiled and packaged for the PPC LinkStation. The OpenSSH<ref>[http://www.openssh.com/ http://www.openssh.com/] - OpenSSH a FREE version of the SSH connectivity tools</ref> package is intended for people who want to upgrade from [[w:Dropbear|Dropbear]]<ref>[[Dropbear package designed specifically for the MIPSel LinkStation]]</ref><ref>[[Dropbear package for the PPC LinkStation]]</ref> to a more full-featured [[w:SSH|SSH]] daemon. This way you can use a client like [[w:puTTY|PuTTY]] or [[w:FileZilla|FileZilla]] for terminal and file transfer. You can even tunnel<ref>http://www.ssh.com/support/documentation/online/ssh/winhelp/32/Tunneling_Explained.html - Tunneling Explained</ref> other protocols like [[w:VNC|VNC]]<ref>http://martybugs.net/smoothwall/puttyvnc.cgi - Tunneling VNC over SSH with PuTTY</ref> and [[w:Samba_software|Samba]]<ref>http://souptonuts.sourceforge.net/sshtips.htm - Breaking Firewalls with OpenSSH and PuTTY</ref> through [[w:SSH|SSH]] to make them secure. This package requires that you have installed the [[OpenLink]] or [[FreeLink]] firmware. You may download version 3.9p1 from the downloads area [http://downloads.linkstationwiki.net/powerpc-hdhlan/ppc-openssh-3.9p1-05b.tgz here]. You may want to use this version<ref>[http://www.qumran.org/ftp/local/linux/lsppc/openssh-3.9p1-05b.tgz openssh-3.9p1-05b.tgz] - from [http://www.qumran.org/ftp/local/linux/lsppc/files.php Qumran Cave FileBase]</ref> "it contains the original tarball plus an installation script (not yet widely tested, but at least from that you can see the requirements)" referred to by Izzy in this forum <ref>[http://forum.linkstationwiki.net/index.php?action=vthread&forum=4&topic=1032&page=0#msg8524 The Linkstation Community Forum / Everything else / www.linkstationwiki.net - Mediawiki is online]</ref>. Or, get version 4.3p2 from [http://www.unet.univie.ac.at/~a0025690/ppc-binaries/OpenSSH-4.3p2_ppc.tar.gz here].

+

This project offers [[w:OpenSSH|OpenSSH]] (including daemon), precompiled and packaged for the PPC LinkStation. The OpenSSH<ref>[http://www.openssh.com/ http://www.openssh.com/] - OpenSSH a FREE version of the SSH connectivity tools</ref> package is intended for people who want to upgrade from [[w:Dropbear|Dropbear]]<ref>[[Dropbear package designed specifically for the MIPSel LinkStation]]</ref><ref>[[Dropbear package for the PPC LinkStation]]</ref> to a more full-featured [[w:SSH|SSH]] daemon. This way you can use a client like [[w:puTTY|PuTTY]] or [[w:FileZilla|FileZilla]] for terminal and file transfer. You can even tunnel<ref>http://www.ssh.com/support/documentation/online/ssh/winhelp/32/Tunneling_Explained.html - Tunneling Explained</ref> other protocols like [[w:VNC|VNC]]<ref>http://martybugs.net/smoothwall/puttyvnc.cgi - Tunneling VNC over SSH with PuTTY</ref> and [[w:Samba_software|Samba]]<ref>http://souptonuts.sourceforge.net/sshtips.htm - Breaking Firewalls with OpenSSH and PuTTY</ref> through [[w:SSH|SSH]] to make them secure. This package requires that you have installed the [[OpenLink]] or [[FreeLink]] firmware. You may download version 3.9p1 from the downloads area [http://downloads.nas-central.org/powerpc-hdhlan/ppc-openssh-3.9p1-05b.tgz here]. You may want to use this version<ref>[http://www.qumran.org/ftp/local/linux/lsppc/openssh-3.9p1-05b.tgz openssh-3.9p1-05b.tgz] - from [http://www.qumran.org/ftp/local/linux/lsppc/files.php Qumran Cave FileBase]</ref> "it contains the original tarball plus an installation script (not yet widely tested, but at least from that you can see the requirements)" referred to by Izzy in this forum <ref>[http://forum.nas-central.org/index.php?action=vthread&forum=4&topic=1032&page=0#msg8524 The NAS-Central Community Forum / Everything else / www.nas-central.org - Mediawiki is online]</ref>. Or, get version 4.3p2 from [http://www.unet.univie.ac.at/~a0025690/ppc-binaries/OpenSSH-4.3p2_ppc.tar.gz here].

''This is generic and probably would work for any flavor LinkStation''<ref>[http://forum.linkstationwiki.net/index.php?action=vthread&forum=3&topic=1241#msg10720 The Linkstation Community Forum / Linkstation 2 (mips) / Secure FTP for a Noob]</ref>

+

''This is generic and probably would work for any flavor LinkStation''<ref>[http://forum.nas-central.org/index.php?action=vthread&forum=3&topic=1241#msg10720 The NAS-Central Community Forum / Linkstation 2 (mips) / Secure FTP for a Noob]</ref>

Check to see if you have the ''groups'' command available as it is needed. It will typically be under /usr/local/bin, but the easiest way to check for it is to simply issue the command

+

groups

+

bash: groups: command not found

+

and see if you get an error as in the above example or not. If it does not exist on your system, then you can extract it from the coreutils package available at http://downloads.nas-central.org/ALL_PPC/ (it is not necessary to install the full coreutils package unless you really want to).

+

+

====Startscript (/etc/init.d/sshd)====

+

1) The <tt>/etc/init.d/sshd</tt> needs to be modified by adding the following lines to startup block.

+

if [ ! -d /var/empty ]; then

+

mkdir /var/empty

+

chown root:sys /var/empty

+

chmod 755 /var/empty

+

fi

+

If the modification is not done, every time SSH is stopped and restarted, it will complain the the /var/empty directory already exists.

+

+

2) One must do a final step to create the link for auto-starting the sshd daemon on system boot:

+

ln -s /etc/init.d/sshd /etc/rc.d/rc3.d/S07sshd

+

+

3) You should be able to connect via ssh after reboot or if you start

+

/etc/init.d/sshd "start"

+

manually. At this point you can connect using your favorite ssh client (e.g. putty).

+

+

====Disabling standard telnet====

+

Once you are happy that you have ssh working you are likely to want to disable standard telnet.

+

To do this comment out the the line in /etc/inetd.conf that starts telnet by inserting a # at

+

the front:

+

#telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd

+

You can then always re-enable standard (unencrypted) telnet by uncommenting this line.

Background

This project offers OpenSSH (including daemon), precompiled and packaged for the PPC LinkStation. The OpenSSH[1] package is intended for people who want to upgrade from Dropbear[2][3] to a more full-featured SSH daemon. This way you can use a client like PuTTY or FileZilla for terminal and file transfer. You can even tunnel[4] other protocols like VNC[5] and Samba[6] through SSH to make them secure. This package requires that you have installed the OpenLink or FreeLink firmware. You may download version 3.9p1 from the downloads area here. You may want to use this version[7] "it contains the original tarball plus an installation script (not yet widely tested, but at least from that you can see the requirements)" referred to by Izzy in this forum [8]. Or, get version 4.3p2 from here.

Check for missing 'groups' file

Check to see if you have the groups command available as it is needed. It will typically be under /usr/local/bin, but the easiest way to check for it is to simply issue the command

groups
bash: groups: command not found

and see if you get an error as in the above example or not. If it does not exist on your system, then you can extract it from the coreutils package available at http://downloads.nas-central.org/ALL_PPC/ (it is not necessary to install the full coreutils package unless you really want to).

Startscript (/etc/init.d/sshd)

1) The /etc/init.d/sshd needs to be modified by adding the following lines to startup block.