Adafruit's Raspberry Pi Lesson 6. Using SSH



Similar documents
Adafruit's Raspberry Pi Lesson 7. Remote Control with VNC

Adafruit's Raspberry Pi Lesson 5. Using a Console Cable

Adafruit's Raspberry Pi Lesson 5. Using a Console Cable

Adafruit's Raspberry Pi Lesson 5. Using a Console Cable. Created by Simon Monk

SSH to BeagleBone Black over USB

Raspberry Pi Setup Tutorial

Laboration 3 - Administration

SSH and Basic Commands

Remote Access to Unix Machines

INASP: Effective Network Management Workshops

CONNECTING TO DEPARTMENT OF COMPUTER SCIENCE SERVERS BOTH FROM ON AND OFF CAMPUS USING TUNNELING, PuTTY, AND VNC Client Utilities

PiFace Control & Display

PuTTY/Cygwin Tutorial. By Ben Meister Written for CS 23, Winter 2007

SSH Connections MACs the MAC XTerm application can be used to create an ssh connection, no utility is needed.

Mapping ITS s File Server Folder to Mosaic Windows to Publish a Website

SETTING UP RASPBERRY PI FOR TOPPY FTP ACCESS. (Draft 5)

APPLICATION NOTE. How to build pylon applications for ARM

Download and Install the Citrix Receiver for Mac/Linux

RSA SecurID Token User Guide February 12, 2015

Yale Software Library

Linux Development Environment Description Based on VirtualBox Structure

Navigating the Rescue Mode for Linux

Raspberry Pi Kernel-o-Matic

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

Instructions for Accessing the Advanced Computing Facility Supercomputing Cluster at the University of Kansas

VPN: Virtual Private Network Setup Instructions

Adafruit's Raspberry Pi Lesson 3. Network Setup

7inch HDMI LCD (B) User Manual

Creating a DUO MFA Service in AWS

Raspberry Pi Webserver

SETTING UP A LAMP SERVER REMOTELY

Connecting to the ODU Turing Cluster

How to use SURA in three simple steps:

There s a variety of software that can be used, but the approach described here uses freely available Cygwin software: (1) Cygwin/X (2) Cygwin/openssh

WebIOPi. Installation Walk-through Macros

Connecting to Remote Desktop Windows Users

How to Tunnel Remote Desktop Through SSH on a Windows Computer

Introductory Note 711 & 811. Remote Access to Computer Science Linux Files Using Secure Shell Protocols

Extending Remote Desktop for Large Installations. Distributed Package Installs

CISE Research Infrastructure: Mid-Scale Infrastructure - NSFCloud (CRI: NSFCloud)

Tunnel VNC through SSH Tutorial Version 1

Using Virtual Machines

Stealth OpenVPN and SSH Tunneling Over HTTPS

How to read Temperature and Humidity from Am2302 sensor using Thingworx Edge java SKD for Raspberry Pi

How To Connect A Raspberry Pi To The Internet On A Microsoft Moonstone 2 (Microsoft) Microsoft Powerbook 2 (Powerbook 2) (Powerboard 2) And Powerbook 3 (Powerstation 2)

How to Backup XenServer VM with VirtualIQ

Universal Mobile Print Server On the Cheap, and Cloud-free. What You Will Need. Configuring your Pi as a Print Server

CONNECTING THE RASPBERRY PI TO A NETWORK

[HOW TO RECOVER AN INFINITI/EVOLUTION MODEM IDX ] 1

HIG s Remote Desktop Services (RDS) on Linux

Cassandra Installation over Ubuntu 1. Installing VMware player:

Local Caching Servers (LCS): User Manual

Miami University RedHawk Cluster Connecting to the Cluster Using Windows

Setting up a Raspberry Pi as a WiFi access point

SSH Tutorial. A. Andreatos Div. of Computer Engineering & Information Science Hellenic Air Force Academy GREECE gmail.

DraganFly Guardian: API Instillation Instructions

Internet Address: cloud.ndcl.org

VMware Horizon FLEX User Guide

MATLAB on EC2 Instructions Guide

Using Remote Desktop with the Cisco AnyConnect VPN Client in Windows Vista

SSL VPN Support Guide

Tutorial Guide to the IS Unix Service

Using a login script for deployment of Kaspersky Network Agent to Mac OS X clients

Working with Docker on Microsoft Azure

CPSC 226 Lab Nine Fall 2015

Step One: Installing Rsnapshot and Configuring SSH Keys

Back Up Linux And Windows Systems With BackupPC

TEL 500. Voice Communications. Week 1 Write Up. Session Initiation Protocol Lab. Submitted To: Prof Ronny Bull. By: Sai Sharan Korvi

How to Install Multicraft on a VPS or Dedicated Server (Ubuntu bit)

How to Use Remote Desktop over a Secure Connection (SSH)

Stealth Attack from the Produce Aisle

Securing Windows Remote Desktop with CopSSH

Cloud Server powered by Mac OS X. Getting Started Guide. Cloud Server. powered by Mac OS X. AKJZNAzsqknsxxkjnsjx Getting Started Guide Page 1

New Lab Intro to KDE Terminal Konsole

Additional Information: SSH, PuTTY, and VmWare

Tutorial. Reference for more thorough Mininet walkthrough if desired

Check current version of Remote Desktop Connection for Mac.. Page 2. Remove Old Version Remote Desktop Connection..Page 8

User guide. Business

Configuring a Windows 2003 Server for IAS

Deploy the ExtraHop Discover Appliance with Hyper-V

Mapping the ITS File Server Folders to Mosaic Windows

NAS 109 Using NAS with Linux

How to upload - copy PowerChute Network Shutdown installation files to VMware VMA from a PC

Using an IR Remote with a Raspberry Pi Media Center

Local Caching Servers (LCS) February 2015

Backing Up TestTrack Native Project Databases

VMware Horizon FLEX User Guide

Using pcduino's WiFi Dongle With the Pi a

Viking VPN Guide Linux/UNIX

1. Product Information

Securing Windows Remote Desktop with CopSSH

Online Backup Client User Manual Linux

Optional Mainserver Setup Instructions for OS X Support

Lab 8.3.3b Configuring a Remote Router Using SSH

Setting Up VNC, SSH Tunnels, and RDP

How to Install Microsoft Windows Server 2008 R2 in VMware ESXi

Using a Remote SQL Server Best Practices

Addonics T E C H N O L O G I E S. NAS Adapter. Model: NASU Key Features

Transcription:

Adafruit's Raspberry Pi Lesson 6. Using SSH Created by Simon Monk Last updated on 2015-04-09 03:47:50 PM EDT

Guide Contents Guide Contents Overview Enabling SSH Using SSH on a Mac or Linux SSH under Windows Test & Configure Troubleshooting 2 3 4 7 9 11 11 https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh Page 2 of 11

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 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. https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh Page 3 of 11

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 enable SSH access by default. On older installations, you can use Raspi Config, which you first saw back in Lesson 2 (http://adafru.it/aua). 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. https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh Page 4 of 11

Hit the Enter and then select Enable https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh Page 5 of 11

A script will run and then you will see the following as confirmation: https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh Page 6 of 11

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. ssh 192.168.1.13 -l pi 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. https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh Page 7 of 11

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. https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh Page 8 of 11

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 ). https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh Page 9 of 11

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) https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh Page 10 of 11

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! Last Updated: 2015-04-09 03:47:50 PM EDT Page 11 of 11