After the first boot, we need to connect our Raspberry Pi to the Internet, and enable a SSH client in our pc to control it remotely. You can access the router configuration page (usually http://192.168.0.1) to check out all devices connected to the network and get the Raspberry Pi IP. In my case i’ve got 192.168.0.7. If the Raspberry Pi is connected by WiFi, it’ll be a little harder, since you’ll need to edit a file with your WiFi network and password.
SSH client for Windows
We can download putty. It’s a very simple SSH client. We’ll set the Raspberry Pi IP to connect and select “SSH connection”, then save the session with a name so we don’t have to fill it again the next time. When we click Open, a shell will show up so we can work. The first time we connect, we’ll be asked to accept the authenticity of the host. Then it’ll ask for user and password and you’ll be ready to work as you were locally on the Raspberry Pi.
SSH client for Linux
The SSH command is installed by default in Linux. We’ll open a shell and type ssh IP, where IP means the Raspberry Pi IP (in my case ssh 192.168.0.7). To enter straight, we can type the command ssh pi@IP in our local network (in my case ssh email@example.com). Here you’ll also be asked to confirm the authenticity of the host the first time, then you’ll be asked for the password (if we type ssh pi@IP) or the user and password if we just type ssh IP. After that you can enter commands as you were locally on the Raspberry Pi.
In order to configure a WiFi connection with WPA encryption, you’ll have to edit the file /etc/network/interfaces and add the following lines:
iface wlan0 inet dhcp
iface default inet dhcp
where ESSID means your network name and PASSWORD your password.