Use Ssh to Talk With Your Raspberry Pi.

Intro: Use Ssh to Talk With Your Raspberry Pi.

This brief guide explains how to use ssh to talk with your Raspberry Pi.

You will need:
1 Raspberry Pi connected to your router
(Monitor and keyboard.)

If you are looking for a guide to access your Raspberry Pi from the internet look here:
https://www.instructables.com/id/Raspberry-Pi-as-webserver/

Step 1: Enable Ssh on Raspberry Pi

Login with the following information when prompted:
Username: pi
Password: raspberry

Type the following command:

sudo raspi-config
in the terminal, then navigate to ssh, hit Enter and select Enable or disable ssh server.

reboot

After Pi is restarted check ip-address with the command

ifconfig
Note the inet addr!

It is a good idea to change password. This is done with the command:
sudo -i
passwd pi
Remember the new password!

After this step you'll not need to use monitor and keyboard to run commands on your Raspberry any more. See next step!

Step 2: Install Putty on Your PC

Download and install putty.
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Start putty.

Add new config with the ipaddress from previous step. (for i.e 192.168.1.12 and port 22)

Save. Click open.

You'll be prompted
login:
If you done right...

Login with username pi and the password you entered in previous step. (Default password is raspberry)

If you want to install a webserver on your Raspberry Pi look here:
https://www.instructables.com/id/Install-a-webserver-on-Raspberry-Pi/

http://213.65.123.101/whoiam/ - all you want to know about what google knows about you.

May the Pi be with you!

Share

    Recommendations

    • Audio Contest 2018

      Audio Contest 2018
    • Plastics Contest

      Plastics Contest
    • Optics Contest

      Optics Contest

    21 Discussions

    0
    None
    TimothyG20

    1 year ago

    This is out of date. the recent release of debian for the pi does not have an SSH option in that menu.

    1 reply
    0
    None
    brsteveTimothyG20

    Reply 1 year ago

    To help anyone who runs into that, the updated instructions for the menu should be to click "Interfacing Options" in the menu, and THEN click SSH.

    0
    None
    BigNateMI

    1 year ago

    Thank you! i needed this to program the pi for m son's PiCar.

    0
    None
    Redlinecoder

    1 year ago

    Can you check the IP adress many times?

    0
    None
    TheShellex

    1 year ago

    I type sudo raspi-config in the terminal and get "no command found." Same thing with sudo ifconfig. What is wrong?

    1 reply
    0
    None
    diy_bloke

    1 year ago

    oddly I get the message that I have to add the correct key in my 'known host file'

    0
    None
    signuplease

    2 years ago

    The title or introduction should precise that the PC parts instructions are is for MS Windows.

    2 replies
    0
    None
    PridhviMsignuplease

    Reply 1 year ago

    You don't need MS Windows to enable ssh. You might need a computer running windows/mac os/linux to communicate with the rpi through wifi.

    0
    None
    signupleasePridhviM

    Reply 1 year ago

    Yes I know you don't need M$Windows to use ssh, I just meant that your good instructable is specifically about using ssh on M$W to communicate with the pi.

    0
    None
    JuanP131

    2 years ago

    I have "Initial ssh key generation still running. Pleas wait and try again" after I hit SSH in the terminal. Help?

    1 reply
    0
    None
    PridhviMJuanP131

    Reply 1 year ago

    Try turning it off and back on. If still no luck, reinstall os.

    0
    None
    Sperch

    2 years ago

    Thanks!

    If you want to remotely ssh access you need port forwarding, static ip or ddns.

    The easy way is Terminalify (terminalify.com). You can access remote linux device without static ip, port forwarding via Terminalify.

    Tutorial: https://www.youtube.com/watch?v=A7Qvm7ZBZrg

    0
    None
    Magdiblog

    3 years ago on Introduction

    Hi

    To go further, here is explained how to keep in touch with a Pi even if it's ip address is dynamicaly allocated (dongle 3G...) :

    http://www.magdiblog.fr/divers/ssh-connect-back-comment-garder-la-main-sur-un-raspberry-pi-connecte-a-internet-via-un-dongle-3g/

    0
    None
    IqAndreas

    4 years ago on Introduction

    Step 1 no longer works in the current version (running Wheezy at the moment, but I'm not sure when it changed). In the current version you need to run raspi-config, go to 8 Advanced Options, and then A4 SSH where you can enable or disable SSH access.

    1 reply

    You are absolutely right! It is a Linux box, but smaller and funnier! =} Leave a "Computothoght was here" on indexpage if you hack it... and post your step by step instructable in the Raspberry contest and you'll surely win. :) With respect, A