Puredyne/SSH into your Puredyne system

Many linux systems automatically run an SSH service so that it's possible to log in to your computer remotely, using an SSH client on some other computer.

In Puredyne this is disabled by default (because the live CD has a fixed username and password, so it would be insecure to allow just anyone to log in) - but it's easy to enable it, if you'd like:

To enable the SSH serviceEdit

The SSH daemon is prevented from running by the existence of a simple file, located at:

/etc/ssh/sshd_not_to_be_run

When the daemon launches, if that file exists then it simply gives up. So we need to do two things:

  1. Remove that file (or you could rename it)
  2. Start the SSH daemon

Here's how:

sudo rm /etc/ssh/sshd_not_to_be_run
sudo /etc/init.d/ssh start

To log in using SSHEdit

You need to know the address of your computer (e.g. the raw IP address). If you don't know it, run this command on the machine you're going to want to log into:

ifconfig -a

and look in the output for the IP address (it'll be labelled "inet" and listed under the relevant network point, e.g. 'en0' for the first wired ethernet connection).

So, from some remote machine, you can use a graphical client or a simple command-line, assuming the ssh client is installed. Here's how to log in if the user is 'live' and the IP address is '127.0.0.1':

ssh live@127.0.0.1

On a 9.11-carrot_and_coriander-DVD (booted from a USB stick), the correct username and password is "lintian" and "live".

To disable the SSH serviceEdit

Do the opposite of what we did above:

  1. Create that specially-named file (the file contents can be anything, or nothing)
  2. Stop the SSH daemon

Here's how:

sudo touch /etc/ssh/sshd_not_to_be_run
sudo /etc/init.d/ssh stop
Last modified on 28 August 2011, at 21:33