Setup SSH Server on Raspberry Pi with Raspbian Lite

From Embedded Lab Vienna for IoT & Security
Jump to: navigation, search

Summary

This guide explains how to configure a static IP-Address and setup a ssh server on raspbian Lite.

Requirements

  • Operating system: Raspberry Pi

Description

Setting a static IP

This guide uses the /etc/network/interfaces file to configure a static IP. Edit the file with:

sudo nano /etc/network/interfaces

Enter the following lines with your desired IP-Address and network configurations:

auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.133
netmask 255.255.255.0
gateway 192.168.0.1

Note: Don't choose a IP-Address from your dhcppool.

Enable SSH

I am going to use the terminal to enable the SSH server. To enable the SSH server enter the following two commands:

sudo systemctl enable ssh
sudo systemctl start ssh

Used Hardware

Raspberry Pi 3 Model B+

References