Adafruit's Raspberry Pi Lesson 6. Using SSH

Similar documents
Adafruit PiUART - USB Console and Power Add-on for Raspberry Pi

Preparing SD card for Pi

Adafruit's Raspberry Pi Lesson 2. First Time Configuration

Raspberry Pi Setup Tutorial

RETROPIE INSTALLATION GUIDE

Raspberry Pi Kernel-o-Matic

XLink Kai Raspberry Pi Beginners Tutorial

Getting started with Raspberry Pi (and WebIoPi framework)

More Raspian. An editor Configuration files Shell scripts Shell variables System admin

Lab 0: Intro to running Jupyter Notebook on a Raspberry Pi

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi

#Uncomment the second line to enable any form of FTP write command. #write_enable=yes

5inch HDMI LCD (B) User Manual

Adding a Real Time Clock to Raspberry Pi

Adafruit NFC/RFID on Raspberry Pi

Adafruit NFC/RFID on Raspberry Pi

Digital Free Library. Created by Kirby Griese. Last updated on :35:15 PM UTC

Raspberry Pi 3 Model B+ and JMRI with WiFi Access Point for Pi- SPROG One and Pi-SPROG Nano raspian-stretch build

You will need to know the IP address or the hostname of the pi (as discussed above) to continue and login to your pi via putty over Ethernet.

SETTING UP SSH FOR YOUR PARALLELLA: A TUTORIAL FOR STUDENTS

USB Audio Cards with a Raspberry Pi

Davide Cavaliere 18 th February 2017

PiCloud. Building owncloud on a Raspberry PI

RaspiDigiHamClock. Raspberry Pi Amateur Radio Digital Clock. v WA4EFH R.Grokett

ELE409 SPRING2018 LAB0

You can use the WinSCP program to load or copy (FTP) files from your computer onto the Codd server.

Raspberry Pi NTP Clock Setup Guide

iridium Server for Raspberry Pi

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi

Installation guide. Step1. Install the OS for Raspberry Pi 3. Go to to download Raspbian to the PC.

User Guide Version 2.0

Wallet Installation Guide for Staking on Raspberry PI

Topics. What is a RaspberryPi? Why should I want one? What is Raspbian? What is SSH? What is FTP? What is LAMP? Making a LAMP Stack!

Microprocessor-Based Systems (E155)

Setting up a Chaincoin Masternode

Spreedbox Getting Started Guide

Installation of RedHawk 6.5-r24.2 on the Jetson TX1 Development Board Release Notes. September 19 th, 2017

Raspberry Pi (RPi) Setup Documentation Instrumentation Development Lab Department of Physics and Astronomy University of Hawaii at Manoa

Spring 2017 Gabriel Kuri

High Voltage Module Raspberry Pi Documentation Page 1

UM2375 User manual. Linux driver for the ST25R3911B/ST25R391x high performance NFC frontends. Introduction

Bluetooth Keyboard Setup Instructions

IoT with Intel Galileo Gerardo Carmona. makerobots.tk

Manual of ET-LCD SW HAT

Setting up a Raspberry Pi as a WiFi access point

Introduction to Linux Spring 2014, Section 02, Lecture 3 Jason Tang

Raspberry Pi 3 Model B and JMRI with WiFi Access Point for Pi-SPROG One and Pi-SPROG Nano raspian-jessie build

Rapoo E6700 Setup Instructions

Remote GUI access to a Linux computer using Tightvnc

A Step by Step Guide to Installing VPN on Raspberry Pi. Whitepaper

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

Raspberry Pi Basic Setup

Install and Configure Ubuntu on a VirtualBox Virtual Machine

Sigma Tile Workshop Guide. This guide describes the initial configuration steps to get started with the Sigma Tile.

Linux Systems Administration Getting Started with Linux

Installation of RedHawk on Jetson TX1, TX2 and TX2i Development Boards Release Notes

SQL Server vnext on Linux Ubuntu - Part 1

Manual to install experimental firmware on a TYTERA MD380

Labtainer Student Guide

Operating Systems Lab 1. Class topic: Installation of the operating system. Install Ubuntu on Oracle VirtualBox

Communication protocols and services

Galaxy How To Remote Desktop Connection and SSH

ToF T1 User Guide. a module solution provider. Date: 2017/02/13. Hardware Test Supervisor. Software Test Engineer. Center Supervisor Rex

How to Make a Raspberry Pi Web Server

Ps3 Set Ip Address Windows 7 Command Line

10.1inch HDMI LCD (B) User Manual

Adafruit's Raspberry Pi Lesson 11. DS18B20 Temperature Sensing

Temple University Computer Science Programming Under the Linux Operating System January 2017

Linux Kung Fu. Ross Ventresca UBNetDef, Fall 2017

Networked Thermal Printer using Raspberry Pi and CUPS

User Manual. DIL/NetPC DNP/2110 Installing an SSH Connection

BUILD LINUX LEARNING LAB FOR FREE

Exercise Sheet 2. (Classifications of Operating Systems)

Off Board Vision Processing in Java

Adafruit PiOLED - 128x32 Mini OLED for Raspberry Pi

Hands-on Labs using the WLAN Pros ODROID Performance Testing Device

Helpful Tips for Labs. CS140, Spring 2015

Robert Bukowski Jaroslaw Pillardy 6/27/2011

Test Lab Introduction to the Test Lab Linux Cluster Environment

Install the Minicom Terminal Emulator for Use with Callisto-Lx

Power Development Platform Connecting to your PDP system user guide

CSN08101 Digital Forensics. Module Leader: Dr Gordon Russell Lecturers: Robert Ludwiniak

USER MANUAL: 4G. The PiIoT is a WAN communications board which provides a 2G / 3G / 4G

TECH 4272 Operating Systems

DIL/NetPC ADNP/1520 Board Revision 2.1 Installing an SSH Connection User Manual

Session 1: Accessing MUGrid and Command Line Basics

The Command Shell. Fundamentals of Computer Science

Experimental Procedure. Frequently Asked Questions (FAQ) Kit General Questions. Setting Up and Using Your Raspberry Pi Projects Kit

Building a standalone access point using a Raspberry Pi Zero W

CS 143A. Principles of Operating Systems. Instructor : Prof. Anton Burtsev

Orchid Fusion VMS Installation Guide

Expedition. Hardening Guide Version Palo Alto Networks, Inc.

Using RANCID. Contents. 1 Introduction Goals Notes Install rancid Add alias Configure rancid...

Masternode Guide #1. Single masternode on Linux VPS (Ubuntu)+ control wallet on local PC (Windows)

Overview LEARN. History of Linux Linux Architecture Linux File System Linux Access Linux Commands File Permission Editors Conclusion and Questions

Operating Systems Linux 1-2 Measurements Background material

commands exercises Linux System Administration and IP Services AfNOG 2015 Linux Commands # Notes

Network Monitoring & Management. A few Linux basics

Raspberry Pi 2b PART 1. Table of Contents. Step by step guide. 1. Hardware (0:05) RS Online (ex-tax prices)... 3 MSY ebay...

Creating a Yubikey MFA Service in AWS

Transcription:

Adafruit's Raspberry Pi Lesson 6. Using SSH Created by Simon Monk Last updated on 2017-08-16 01:12:07 AM UTC

Guide Contents Guide Contents Overview Enabling SSH Using a blank boot file Using Raspi-Config Using SSH on a Mac or Linux SSH under Windows Test & Configure Troubleshooting 2 3 4 4 4 8 10 12 12 Adafruit Industries https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh Page 2 of 12

Overview In this lesson you will learn how to remote control your Raspberry Pi over your local network using Secure Shell (SSH). A common reason for remote controlling your Pi from another computer (like your laptop or desktop) is that you may be using your Pi solely to control some electronics and therefore not need a keyboard, mouse and monitor, other than for setting it up. It also can just save on desktop clutter, and the problem of having multiple keyboards and mice all over the place. Adafruit Industries https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh Page 3 of 12

Enabling SSH Secure Shell (SSH) is a feature of Linux that allows you to effectively open a terminal session on your Raspberry Pi from the command line of your host computer. Recent versions of Rasbpian do not enable SSH access by default. You can use an empty boot file or raspi-config, which you first saw back in Lesson 2 (http://adafru.it/aua) Using a blank boot file For truly headless setups, if you can't ssh into your Pi you can't turn on ssh! It's a bit of conundrum! But you can easily get around it by using a trick in Raspbian. To do so, we simply create a file called ssh. This file does not exist by default and needs to be created. It can be empty. The system looks for it at boot time and will enable ssh if it is there. It is then deleted. So just create a new file and save it as ssh to the boot folder. If you plug the SD card into your computer, just put that ssh file directly in the SD card director's root directory Using Raspi-Config Adafruit Industries https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh Page 4 of 12

In order to do this, open LX Terminal on your Pi and enter the following command to start Raspi Config: sudo raspi-config Scroll down to the ssh option, it might be under Interfaces or Advanced (they move it around) Adafruit Industries https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh Page 5 of 12

Hit the Enter key and then select Enable A script will run and then you will see the following as confirmation: Adafruit Industries https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh Page 6 of 12

You will need to reboot your Pi to make the change permanent Adafruit Industries https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh Page 7 of 12

Using SSH on a Mac or Linux Now switch over to using the computer from which you wish to control the Pi. If you are using a Mac or Linux PC then open a Terminal. On the Mac, you can find this in the Utilities folder of your Applications folder. Enter the following command into the Terminal window. That's a lowercase L after the dash! ssh 192.168.1.13 -l pi You can also use ssh pi@192.1691.13 Note that you will need to replace the IP address above with that of your Pi. You can find this by running the command sudo ifconfig from the Terminal. Adafruit Industries https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh Page 8 of 12

The option -l pi' specifies that we want to log into the Pi as the user pi. The first time you run the command, you will get a security warning about not being able to verify the identity of the machine, say that you want to continue and enter your password ( raspberry by default) when prompted. You will notice that the command prompt will change to indicate that you are now connected to your Pi. Try using the ls command to show the contents of the current folder on the Pi. Adafruit Industries https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh Page 9 of 12

SSH under Windows If you use windows, then you will need to download a free program called PuTTY from here: http://www.putty.org/ (http://adafru.it/aub). Having downloaded and installed PuTTY (it's a single file called putty.exe), run the program. Enter the IP address that you found earlier and click Open. This will give you a warning (the first time) and then prompt you for the user ( pi ) and password ( raspberry ). Adafruit Industries https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh Page 10 of 12

The ssh window will then be ready for use. For a good example of how to use ssh to remotely configure a raspberry Pi, take a look at this tutorial: http://learn.adafruit.com/raspberry-pi-e-mail-notifier-usingleds/overview (http://adafru.it/auc) Adafruit Industries https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh Page 11 of 12

Test & Configure Try exploring your files system by using 'ls' to list the files in the current directory and 'cd' followed by a directory name to change the current directory. You can edit files using 'nano' followed by the file name and also install software using the 'apt-get' command, as described in some of the earlier tutorials in this series. When finished with your ssh session, close the client application/window or simply type in exit into the shell window. Troubleshooting If you encounter a connection reset by peer error when trying to connect to your Pi, there could be a problem with the SSH keys. You can 'reset' the keys with the following commands. First, remove the old keys: sudo rm /etc/ssh/ssh_host_* Then regenerate them sudo dpkg-reconfigure openssh-server Then try again! Adafruit Industries Last Updated: 2017-08-16 01:12:07 AM UTC Page 12 of 12