hazza_ob
Posts: 6
Joined: Thu Aug 25, 2016 9:42 pm

SSH into pi

Tue Jul 04, 2017 8:36 pm

The idea is this: With a wifi dongle attached, host a server which allows the user to establish a ssh connection into the Raspberry-Pi.

The question: Is this possible, and how would i go about doing it?

Thanks in advance
-Harry

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: SSH into pi

Tue Jul 04, 2017 8:42 pm

Sure.

You can use the dongle to connect to an existing AP and then use SSH to connect to the Pi.
Or turn the Pi into an access point and connect to it directly from another machine, see e.g. https://www.raspberrypi.org/documentati ... s-point.md

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: SSH into pi

Wed Jul 05, 2017 2:25 am

as you say you want use a USB WIFI dongle i think you have a RPI1 or RPI2
(as the RPI3 has WIFI )

- you use the latest RASPBIAN ( as image or already installed via NOOBS )

if you work with HDMI TV / monitor + keyboard mouse
+ you setup wifi via menu header line
+ you enable SSH by terminal "sudo raspi-config" or menu / preferences / raspberry pi configuration / interfaces / SSH: enable /

if you want use LAN ( ethernet cable ) or WIFI only
( RPI just need powercable ) ( this is called headless setup / should not use NOOBS version for this )
and while the SD card still in card reader on PC
+ you can enable ssh by creating a empty file called ssh
+ you create a file there ( fat32 partition SD card / later called /boot/ ) also for the wifi login
wpa_supplicant.conf

Code: Select all

    country=GB
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1

    network={
            ssid="YOUR-SSID"
            psk="YOUR-SSID-PASSWORD"
            key_mgmt=WPA-PSK
    }
after this put the SD card in RPI, powerup and try to find the IP of the RPI on your LAN
by PC network tools / by android FING / by look into the router /
and login RPI by PC putty software with this IP, user: pi password: raspberry

hazza_ob
Posts: 6
Joined: Thu Aug 25, 2016 9:42 pm

Re: SSH into pi

Sun Jul 16, 2017 6:28 pm

KLL wrote:as you say you want use a USB WIFI dongle i think you have a RPI1 or RPI2
(as the RPI3 has WIFI )

<SNIP>

after this put the SD card in RPI, powerup and try to find the IP of the RPI on your LAN
by PC network tools / by android FING / by look into the router /
and login RPI by PC putty software with this IP, user: pi password: raspberry

I don’t think you understood what i meant. I was talking about hosting a network on the pi and connecting to THAT network as somewhat of a mobile programming station.

The other guy answered it. Cheers anyway!
Last edited by hazza_ob on Sun Jul 16, 2017 7:06 pm, edited 1 time in total.

hazza_ob
Posts: 6
Joined: Thu Aug 25, 2016 9:42 pm

Re: SSH into pi

Sun Jul 16, 2017 6:28 pm

DirkS wrote:Sure.

You can use the dongle to connect to an existing AP and then use SSH to connect to the Pi.
Or turn the Pi into an access point and connect to it directly from another machine, see e.g. https://www.raspberrypi.org/documentati ... s-point.md
Exactly what i wanted! thanks!

Return to “Beginners”