3.1. SSH
The following steps will walk users through how to configure their Raspberry Pi
and their Windows PC to allow for SSH over a direct Ethernet connection. Both
the PC and the Raspberry Pi will be configured to to have static IPs on the same
subnet.
For additional instructions on how to enable SSH on a Raspberry Pi please refer
to the Raspberry Pi Foundation's SSH documentation.
3.1.1.Configure the Raspberry Pi to allow SSH.
1. Enter sudo raspi-config
in a terminal window.
2. Select Interfacing Options.
3. Navigate to and select SSH.
4. Select Yes.
5. Select Ok.
6. Select Finish.
3.1.2. Configure the Raspberry Pi's Ethernet to have a static IP.
1. Enter sudo nano /etc/dhcpcd.conf
in a terminal window.
2. Add the following to the bottom of the file:
interface eth0
static ip_address=192.168.0.10/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1
static domain_name_servers=8.8.8.8
3. Exit the editor by pressing CTRL+X then save your changes by
pressing 'Y' and then hitting enter.
4. Restart the Raspberry Pi.
3.1.3. Configure your PC to have a static IP in the same subnet.
1. Open Network and sharing center.
2. Select change adapter settings
.
3. Right click the Ethernet interface that the RPI will be attached to and
select properties.
4. Double click on Internet Protocol Version 4 (TCP/IPV4).
5. Select the "Use the following IP address" option and enter the following:
IP Address: 192.168.0.11
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.0.1
6. Select OK.
PN 1001407 rev 1 © NimbeLink Corp. 2017. All rights reserved. 8