Raspberry_Pi_Education_Manual

Notes:

Lesson 6.5: Remote access to the Raspberry Pi

OpenSSH is an application that allows you to securely access Linux systems remotely over the network. You can use OpenSSH simply for secure file sharing. But it also allows you to log on to a system and control it over the network, even using the GUI, just as if you were sat in front of it. The default installation of Linux on your Raspberry Pi should have ā€œ SSH daemon ā€ running. This means that your Raspberry Pi is listening on port 22 for a remote computer asking to make a connection to it. In your case, this will probably mean your normal desktop or laptop computer.

Running a remote CLI

To connect to your Raspberry Pi, you will need an SSH client program. Linux and the Mac OS already have these installed. For Windows, you can download Putty ( http://www.chiark.greenend.org.uk/~sgtatham/putty ). Refer to the manual of your chosen SSH client program for more information on how to install and use it. In order to make a successful connection, you must have port 22 open on both your remote host and the Raspberry PI. You will also need to set up a suitable user on the RPi (as we did earlier in this chapter).

If you are using a Linux or Mac client, simply enter this at the command line:

ssh -l

should be replaced with the IP address of your Raspberry Pi, and should be replaced with the username of your Raspberry Pi, as you set up previously. The character between them is a lower-case ā€œLā€.

You should see output similar to this:

[brian@fc16toshiba ~]$ ssh -X 192.168.1.104 -l brian The authenticity of host '192.168.1.104 (192.168.1.104)' can't be established. RSA key fingerprint is 26:a4:a1:ab:c2:ff:50:99:d7:e1:49:6e:f2:90:fb:90. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.1.104' (RSA) to the list of known hosts. brian@192.168.1.104's password: Linux raspberrypi 3.1.9+ #9 Mon Apr 9 20:50:36 BST 2012 armv6l The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. brian@raspberrypi:~$

At this point you are up and running. Everything you type is actually happening on your Raspberry Pi.

The Linux Command Line

166

Made with FlippingBook flipbook maker