Remote Access with SSH and Remote Desktop - Raspberry Pi and Python tutorials p.3

  Переглядів 471,651

sentdex

sentdex

7 років тому

In this Raspberry Pi tutorial, we're going to cover how we can remotely access our Raspberry Pi, both with SSH and with a remote desktop client. We want to eventually be able to remotely access our Raspberry Pi because much of the "value" of the Raspberry Pi is its size, and that it can be put in a variety of places that we might not want to have a keyboard, mouse, and monitor attached to it at all times and we probably don't want to have to carry over all of this stuff when we do want to access it.
Text-based version of this series: pythonprogramming.net/introdu...
/ sentdex
/ pythonprogramming.net
plus.google.com/+sentdex

КОМЕНТАРІ: 263
@demon562
@demon562 4 роки тому
Thanks man, I went to like 5 different tutorials before and none worked. Yours worked flawlessly! big ups
@linux82
@linux82 5 років тому
Thanks Dude, your videos are awesum. You saved me tons of hours or research. i got my AYI voice KIT ( google assitant) and couldn't SSH to my Pi. Found i never installed xrdp. did this and works perfectly!! thanks so much! cheers
@ryansteller4918
@ryansteller4918 5 років тому
Thanks for this! My keyboard wasn't recognised so i was able to get around it using my phone to create an unsecured wifi network, then connecting pi and laptop to it, then following your steps
@DonMiggyg023
@DonMiggyg023 3 роки тому
3 yrs later and it still WORKS!!!! YOU DA MAN!!!! Thanks Bro!!
@888kilo
@888kilo 3 роки тому
If I could like this video 1000 times I would. Thanks man, this was simple and straight to the point.
@dtmenges
@dtmenges 3 роки тому
Nice video. Thanks for adjusting the size so that the commands in the terminal window are readable.
@wiley0714
@wiley0714 6 років тому
This is the best video I found to date thank you
@TobiasRuano
@TobiasRuano 4 роки тому
Simple and to the point. Excellent video!
@levyeichelberg1210
@levyeichelberg1210 4 роки тому
Still working! Thank you soo much man! Very helpful, UKposts was made for people like you. :)
@moraus
@moraus 3 роки тому
Mate that was so easy to follow. thank you so much. Will save me now looking at a 3rd screen and using a 2nd keyboard and mouse.
@kain966
@kain966 4 роки тому
I know the video is a bit dated, but man you explained it perfectly.
@bradserls7875
@bradserls7875 3 роки тому
Thanks heaps for making this so so simple for me to follow along. Legend!
@splosh2070
@splosh2070 3 роки тому
Thankyou so much, I had been struggling to ssh from windows for ages, non of the other videos i watched helped, this is the best video by far, thankyou so much
@NawtieBoy96
@NawtieBoy96 3 роки тому
use real vnc viewer
@ZipSnipe
@ZipSnipe 6 років тому
Sweet thanx , I have been heisting my son's mouse now I can just run the pi straight from my pc , you are da Man
@sharp7171
@sharp7171 2 роки тому
Probably the best tutorial I have ever watched
@ICe-ph5mr
@ICe-ph5mr 2 роки тому
thanks, i managed to do the ssh stuff but wasnt sure about the things I needed for a remotedesktop connection, it works perfectly, only thing i changed was xorg instead of xvnc as u did
@AlejandroHernandez-qd5bj
@AlejandroHernandez-qd5bj 2 роки тому
Absolute KING, this little kit I ordered off amazon skipped a few steps lol.
@BlueyMcPhluey
@BlueyMcPhluey 3 роки тому
I keep coming back to this video, thankyou
@CROXoDyLE
@CROXoDyLE 4 роки тому
Great vid. Best explination by far. Keep up the good work man!
@Lefachie
@Lefachie 2 роки тому
What a time less video. I seem to always be finding myself coming back LOL . Thank you
@mr3748
@mr3748 3 роки тому
Works like a charm, I even accessed the pi with android aswell. My nest step will be to use port fowarding to access the pi from outside my wifi network
@tylerm8211
@tylerm8211 5 років тому
Great video man , did exactly what I needed. Many thanks
@aidannotfunny
@aidannotfunny 2 роки тому
Bro, thank you so much, I thought I was gonna have to plug my Pi into a monitor, keyboard and mouse every time I wanted to make a change
@nieder-olm
@nieder-olm 3 роки тому
Worked perfectly. Thank you for sharing!
@johncraft9464
@johncraft9464 6 років тому
Wow 1 and 2 I followed pretty good but on 3 you just went super fast techy, dang!
@nkmicros540
@nkmicros540 5 років тому
Good job. quick and clear. For me worked that all =D
@mikesullivan3879
@mikesullivan3879 3 роки тому
Exactly what I needed and if you disconnect the hdmi it still works
@user-vh8bm3fw9w
@user-vh8bm3fw9w 4 роки тому
It really helped me. Thanks! Greetings from Belarus!
@Townsy
@Townsy 6 років тому
thanks a lot for the easy and clear tutorial! New sub here
@mansourmed6961
@mansourmed6961 4 місяці тому
100% work , very simple and easy , i recommande this method for every one
@asuiiiiiiii
@asuiiiiiiii 2 роки тому
Great video, straight to the point!
@cajstretton
@cajstretton 5 років тому
Excellent tutorial - worked first time thanks!
@sentdex
@sentdex 5 років тому
Great to hear!
@Fabretteable
@Fabretteable 5 років тому
Valuable content, thanks!
@RichardT123456789
@RichardT123456789 4 роки тому
Hi, I’m new to the pi. I just came across your article.. Well done . I have done the basics with the pi and magic mirror. I got the time / weather set. How do you adjust for local news ? After you have the basic, how do you add / personal modules.? I have not been able to find directions or any good how to on youtube to make the changes. May be you could do a video/ a step by step to add modules and adjust the news for your local area. Thanks
@rasrahmani3087
@rasrahmani3087 5 років тому
You're awesome mate! Thanks
@AnyFactor
@AnyFactor 4 роки тому
Just a bit of note for me. remote desktop >> GUI SSH >> Terminal Sharing 1. Both device connected in the local network (E.G - Wifi, Ethernet) In Raspberry Pi 1. ```Ctrl + Alt + t``` to open up terminal 2. ```ifconfig``` 3. Physical connection >> ```eth0```; wifi connection >> ```wlan0``` 4. look for ```inet addr``` get the ip address 5. Turn on SSH ```sudo raspi-config``` 6. Interfacing options > SSH > Yes In windows machine 1. Download Putty (Or, use WSL) Using Putty 1. Host name (or IP address), give the IP address 192.168.0.103 2. username: pi; password: raspberry In WSL: 1. ```ssh pi@198.162.0.103 (the ip address) GUI Microsoft: remote desktop Microsoft (Pre installed) Linux: grdesktop raspberry 1. ``` sudo apt-get remove xrdp vnc4server tightvncserver sudo apt-get install tightvncserver sudo apt-get install xrdp ``` Windows 1. Give IP Address 2. Give credential
@vannigiovannigio8861
@vannigiovannigio8861 4 роки тому
Thank you bud. Great straight forward work. Were those 39 disikes by strictly mac users?
@wolfgangfleischmann3920
@wolfgangfleischmann3920 4 роки тому
Thank you.great help.all worked right away.
@chrisvenn
@chrisvenn 4 роки тому
Thanks for the great video very easy to follow
@distortedmist
@distortedmist 5 років тому
Thank you!! So helpful :)
@HollyBoy669
@HollyBoy669 5 років тому
Hi, Thanks for the videos! there is an option to connect 2 different Raspberry Pi to one Putty program (I mean on one computer)?
@angelow99able
@angelow99able 5 років тому
Super clean dude nice explanation i recomend this video, btw i have a question that you might know if i do this (any remote for the raspberry) iam exposing my self for hackers? Or is pretty secure still? Also if i do remote control how i can do proxichain or change ip if im using my real ip for the remote ?
@a.ksingh11
@a.ksingh11 5 років тому
Thanks you sir..... I am from india . Thanks for you help......
@ricardobarakatquevedo2124
@ricardobarakatquevedo2124 5 років тому
Thanks, great tutorial
@CiaphasCain21
@CiaphasCain21 4 роки тому
It's You again!
@MiniRockerz4ever
@MiniRockerz4ever 5 років тому
Thank you very much, happy New Year
@Trucker494
@Trucker494 2 роки тому
Excellent video! Thank you very much
@codingboy2254
@codingboy2254 3 роки тому
Heart Warming Tutorials
@kiddyboy1540
@kiddyboy1540 4 роки тому
Hey Dex!! Would you care to explain the last part about the 2 desktops, what they display and the rasp pi camera part you were talking about? I am not able to understand what you're trying to convey. Thanks and that was a great video!
@ambientsoda106
@ambientsoda106 Рік тому
Love this tutorial, as there are Rasbery kits that don't make users aware the SSH is to allow you to use the device from your laptop so you don't need to setup the Rasbery to an additional keyboard and a screen. Do you have a video on programming you raspberry Pi from you laptop? So you don't have to go out and buy the screen and keyboard?
@simonchan2394
@simonchan2394 6 років тому
So just for those Mac users who are completing this tutorial using a Mac with a raspberry pi - you will need to download the remote desktop app from the Mac store, it is called Microsoft Remote Desktop 8.0. Once you have it, create a new connection with the IP address of the raspberry pi and enter the username as "pi" and the password as "raspberry". You will then see the raspberry pi screen on your mac.
@victorananth
@victorananth 7 місяців тому
It didn't work
@steveclark8731
@steveclark8731 5 років тому
Hey Aech, Nice video. I'm using the RPi for OctoPrint, and so, installed the OctoPi image (stretch-lite). I spent a lot of time (unsuccessfully) trying to ssh from PuTTY to the RPi. I'm not a bash-master, but I found these two things: $ sudo apt install openssh-server but even after sudo systemctl enable ssh, I still couldn't get in from PuTTY. I found this on StackExchange: $ sudo rm /etc/ssh/ssh_host_* && sudo dpkg-reconfigure openssh-server ...worked like a charm - hope it may help others. p.s. Love the GTA videos... "he'll be fine, barely touched him."
@binflydushy
@binflydushy 3 роки тому
Thanks vor the help. Best video on UKposts
@user-xk5rx9xe6w
@user-xk5rx9xe6w 5 місяців тому
Thank you sir. it's masterpiece
@DiemFabricati
@DiemFabricati 4 роки тому
Many helps, thank you. I dag out my rasp pi b and making some hobby
@taylangokkaya7061
@taylangokkaya7061 6 років тому
thanks, worked just fine
Місяць тому
Helped a LOT
@johnlynam512
@johnlynam512 5 років тому
Hello, Great videos. I was wondering can you file share through Mac remote Desktop?
@mountain_bouy
@mountain_bouy 4 роки тому
Thank you .. you saved my day
@Manuelmort
@Manuelmort 4 роки тому
Amazing tutorial!!
@JulianMakes
@JulianMakes 4 роки тому
thank you so much for this... i've been following along exactly and you're explaining awesomely (even to my low level). FYI: as it's so tiny on the screen at 7:25 i found "xorg" to be the 'Session' drop down option that worked for me on my PC (i have no idea what that means... but i couldnt find one that said 'session-xvnc' (like it does on yours) on my Remote Desktop program. (please let me know if this is wrong!) i'm looking forward to doing lots of cool things with my Pi (usually i just use an arduino until now i hope :)
@ncnnjnicksb2
@ncnnjnicksb2 4 роки тому
Thanks, I was trying to use the closest option to his and it kept not working and I was trying to see what was wrong. Xorg does indeed work, thanks
@CedricMialaret
@CedricMialaret 5 років тому
Actually, there is an SSH client in Windows 10 since the Fall Creators Update. To install it: Settings / Apps / Manage optional features/Add a feature Select OpenSSH Client Click Install Reboot
@CarmoJams
@CarmoJams 5 років тому
Thank you!
@cking9145
@cking9145 4 роки тому
So many things to install, delete, refresh, config and much more and I don't understand any of them haha without you I would never know how to install all these stuff. I still don't know 🤣🤣🤣
@chrishellmax
@chrishellmax 4 роки тому
Thanks . Subed. Anyways im familiat with ultraviewer, it acts the same way as teamviewer and its open source. Would that be a better option to install on the pi?
@nachosacco5871
@nachosacco5871 4 роки тому
Very useful! How can i use a pc editor and upload the code to the raspberry in order to work better?|
@gihanlakmal3723
@gihanlakmal3723 3 роки тому
Thanks, dude, you save my time!!!!!
@RijuChatterjee
@RijuChatterjee 3 роки тому
If I wanted to just continue coding the pi with a keyboard, mouse and monitor is that fine as well? I'm planning to use the rpi zero (without wifi or ethernet) for a project.
@kiddyboy1540
@kiddyboy1540 4 роки тому
Hey Dex! Another question. Is the remote desktop connectable to Rasp Pi only locally by local wifi or from anywhere in the world?
@tejasn3835
@tejasn3835 5 років тому
YOUR GREAT MAN !!!!!!!!!!!!!!!!!!!!!!!!!
@berkiamohammed4681
@berkiamohammed4681 3 роки тому
big thanks bro that helped me a lot :))))
@brushy
@brushy 2 роки тому
THANK YOU!
@ricardosantos7884
@ricardosantos7884 6 років тому
Thanks man !!!!
@stopmotion-Dimitri
@stopmotion-Dimitri 5 років тому
hello, nice tutto. you can explain the same thing with 4g connection and mapping the box-modem? thanks
@nelewb4391
@nelewb4391 4 роки тому
Do you have to smash the keyboard everytime you hit enter?
@ShitBrick785
@ShitBrick785 5 років тому
If you want to get to the config easier. Click on the raspberry at the top left -> Preferences -> Raspberry Pi Configuration
@akhtarzaman2189
@akhtarzaman2189 4 роки тому
Where did you get the hoodie from? It's a nice and simple design.
@sethusuresh9196
@sethusuresh9196 4 роки тому
Thanks for your video. I'd tried several times before to connect remotely but never succeeded. This one worked like a charm. Though I've one suggestion, vnc server works better than xdrp server. XDRP was too slow. But I've already installed XDRP server. Can you pls share the command to uninstall it alone. I don't want to remove vnc server.
@200134987
@200134987 6 років тому
Followed instructions exactly however when I try to log in through remote desktop connection, remote desktop crashes in the log in screen (when I put user: pi and password: raspberry using the sesman-any) . thoughts? Please let me know!
@augustnicolaybroch9829
@augustnicolaybroch9829 6 років тому
Great! Helped a lot :)
@umairnaveed10
@umairnaveed10 6 років тому
Nice work
@kebuga
@kebuga 4 роки тому
Gracias por tu ayuda! de frente al grano como debe de ser!
@mattm7482
@mattm7482 5 років тому
Hello, I am a little confused between the last video and this. Is the laptop you are showing in this video still connected via Ethernet as you did in the last video? Because this was supposed to be done "remotely" in this video. So how did you connect to the Pi via a local IP?
@MiffyDad
@MiffyDad 4 роки тому
Great videos! It helps
@ajayjoseph4626
@ajayjoseph4626 6 років тому
can you mirror remoter terminal windows on all monitors? So that you can see whos working on it and to prevent accidental reboot/shutdown?
@bptraveler6608
@bptraveler6608 5 років тому
After I got my wifi enabled and connected this worked first time for Remote Desktop. If it works for me, it'll work for anybody. Thanks.
@ibrahimatbouli2994
@ibrahimatbouli2994 4 роки тому
what if it dosent?
@geom8235
@geom8235 5 років тому
It worked.
@neilsumanth8013
@neilsumanth8013 4 роки тому
Thank you!!!
@andretillinghast5614
@andretillinghast5614 5 років тому
How to enable SSH as a default so every time I start up the Pi I am able to SSH in? Thanks!
@PADR
@PADR 6 років тому
Enjoyed the tut. Concise and to the point. Wish a few more UKposts videos were the same instead of the excess waffle and loud self indulgent music. I'd like to know how I could use Putty so as to transfer files across from the PC to the Pi if this is possible. I'm a Linux noob but have nearly 3 decades PC experience from the days when a personal computer was of interest only to the electronic hobbyist.
@michaelbishton9439
@michaelbishton9439 6 років тому
You can download and install BitVise SSH Client www.bitvise.com/ssh-client It can do SSH and file transfer (SFTP) between your PC and Raspbian.
@PADR
@PADR 6 років тому
Many thanks Michael.
@ryanmatulewicz438
@ryanmatulewicz438 3 роки тому
Can I use the remote desktop to control a pi while it's hooked up to another screen and get the screen the pi is actually plugged into to update with the remote desktop? I'm trying to turn the pi into a mobile battle map for D&D
@carlcrompton8427
@carlcrompton8427 5 років тому
terminal login cool, can you do a video on usb-sd card formatting on linux
@bptraveler6608
@bptraveler6608 5 років тому
I'm a newbie looking for a way to watch movies from KODI through my Raspberry pi 3 B+ to my laptop wirelessly. Which is better SSH or remote desktop and does this require a wireless router or will the onboard Raspberry wifi do it?
@sye7969
@sye7969 2 роки тому
does raspberry pi also need to be powered on when accessed via putty configuration?
@erikpalacios7238
@erikpalacios7238 5 років тому
Thank you!!!!!!!!
@Goldslate73
@Goldslate73 3 роки тому
Do I need to connect the board with my master computer for this video?
@michaelbishton9439
@michaelbishton9439 6 років тому
I watched your video again and noticed that you had your login module set to sesman-XVnc. In your presentation, you didn't mention which module one needs to select. I left it at the default, which was Xorg, and got nothing. I don't have sesman-XVnc on my list. I have choices like XVNC or sesman-any. With XVNC, I get the startup screen in the upper left hand corner, but then I get error messages as follows. Getting closer. Any thoughts? ------------------------------------------ Connecting to sesman ip 127.0.0.1 port 3350 sesman connection ok. sending login info to session manager, please wait... login successful for display 10 VNC started connecting VNC connecting to 127.0.0.1 5910 VNC error. Problem connecting Some problem
@electric.tlacuache
@electric.tlacuache 6 років тому
hi, I had the same problem, the only thing I can think is causing it is the xrdp version, because of the way it looks, I also tried a lot of diferent things but the only thing that worked for me was the way its done in this tutorial, ukposts.info/have/v-deo/gol8jqCMnqqAuqs.html , the way he does it is a little different but worked without problems for me
@samfkt
@samfkt 5 років тому
Exactly the same problem, I bought the Pi recently..... and in every da*** video no one has XVNC or XORG. I tried everything, removing every single VNC server and no luck. I used this command to list all VNC servers: "dpkg --get-selections | grep vnc" and removed everything and tried installing tightvncserver and xrdp again and no luck.
@Dayrider10
@Dayrider10 5 років тому
@@electric.tlacuache Please do not do this! The connection is unencrypted which can lead to possible interception of data! If you are new to networking this can be very dangerous! I would suggest if you can't get this to work use SSH only as it is secure
@electric.tlacuache
@electric.tlacuache 5 років тому
@@Dayrider10 thanks man, actually I am very new to networking, fortunately I wasn't doing anything serious with the pi, I was just playing with it, I no longer have the pi but thanks anyway, I will be more careful in the future with my networking stuff hahaha
@philiptroll5019
@philiptroll5019 5 років тому
I had the same problem. I installed vnc4server and it works with Xorg
@camplays487
@camplays487 5 років тому
Is it possible to initialize a Remote Desktop connection from ssh/terminal mode?
@victorhung7308
@victorhung7308 4 роки тому
Please advice if I really assess in remote not sharing the same wireless network just through Internet
@nabzero6528
@nabzero6528 5 років тому
beginner here, did you accessed the r pi via windows?
3 HACKING gadgets you have to TRY!!
19:34
NetworkChuck
Переглядів 1,4 млн
船长被天使剪成光头了?#天使 #小丑 #超人不会飞
00:28
超人不会飞
Переглядів 14 млн
Raspberry Pi Projects
11:57
TJ FREE
Переглядів 1,7 млн
GPIO Basics with LED light - Raspberry Pi and Python tutorials p.6
10:31
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Переглядів 1,4 млн
Setup Raspberry Pi Remote Access - SSH and VNC
5:38
DevOps Journey
Переглядів 10 тис.
Smarter than a Smart TV! (Raspberry Pi Inside)
9:10
Jeff Geerling
Переглядів 1,9 млн
12 NEW Raspberry Pi Projects you must try!!!
8:38
ToP Projects Compilation
Переглядів 522 тис.
It's embarrassing how much I like this thing.
12:19
Linus Tech Tips
Переглядів 834 тис.
Camera Module - Raspberry Pi and Python tutorials p.5
9:09
sentdex
Переглядів 188 тис.