No video

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

  Рет қаралды 477,992

sentdex

sentdex

Күн бұрын

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: pythonprogramm...
/ sentdex
/ pythonprogramming.net
plus.google.co...

Пікірлер: 263
@kain966
@kain966 4 жыл бұрын
I know the video is a bit dated, but man you explained it perfectly.
@DonMiggyg023
@DonMiggyg023 4 жыл бұрын
3 yrs later and it still WORKS!!!! YOU DA MAN!!!! Thanks Bro!!
@sharp7171
@sharp7171 2 жыл бұрын
Probably the best tutorial I have ever watched
@demon562
@demon562 5 жыл бұрын
Thanks man, I went to like 5 different tutorials before and none worked. Yours worked flawlessly! big ups
@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
@Lefachie
@Lefachie 3 жыл бұрын
What a time less video. I seem to always be finding myself coming back LOL . Thank you
@splosh2070
@splosh2070 4 жыл бұрын
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
@dtmenges
@dtmenges 3 жыл бұрын
Nice video. Thanks for adjusting the size so that the commands in the terminal window are readable.
@BlueyMcPhluey
@BlueyMcPhluey 3 жыл бұрын
I keep coming back to this video, thankyou
@aidannotfunny
@aidannotfunny 3 жыл бұрын
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
@linux82
@linux82 6 жыл бұрын
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
@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
@wiley0714
@wiley0714 6 жыл бұрын
This is the best video I found to date thank you
@mansourmed6961
@mansourmed6961 8 ай бұрын
100% work , very simple and easy , i recommande this method for every one
@imjoshwa
@imjoshwa 3 жыл бұрын
I forgot I was watching at x1.25 and holy crap were you typing fast.
@888kilo
@888kilo 3 жыл бұрын
If I could like this video 1000 times I would. Thanks man, this was simple and straight to the point.
@AlejandroHernandez-qd5bj
@AlejandroHernandez-qd5bj 2 жыл бұрын
Absolute KING, this little kit I ordered off amazon skipped a few steps lol.
@moraus
@moraus 4 жыл бұрын
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.
@ryansteller4918
@ryansteller4918 6 жыл бұрын
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
@seeking9145
@seeking9145 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 🤣🤣🤣
@TobiasRuano
@TobiasRuano 5 жыл бұрын
Simple and to the point. Excellent video!
@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
@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
@levyeichelberg1210
@levyeichelberg1210 5 жыл бұрын
Still working! Thank you soo much man! Very helpful, KZfaq was made for people like you. :)
@CROXoDyLE
@CROXoDyLE 4 жыл бұрын
Great vid. Best explination by far. Keep up the good work man!
@mikesullivan3879
@mikesullivan3879 4 жыл бұрын
Exactly what I needed and if you disconnect the hdmi it still works
@ShitBrick785
@ShitBrick785 5 жыл бұрын
If you want to get to the config easier. Click on the raspberry at the top left -> Preferences -> Raspberry Pi Configuration
@bradserls7875
@bradserls7875 3 жыл бұрын
Thanks heaps for making this so so simple for me to follow along. Legend!
@binflydushy
@binflydushy 3 жыл бұрын
Thanks vor the help. Best video on KZfaq
@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
@codingboy2254
@codingboy2254 3 жыл бұрын
Heart Warming Tutorials
@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 11 ай бұрын
It didn't work
@tylerm8211
@tylerm8211 5 жыл бұрын
Great video man , did exactly what I needed. Many thanks
@cajstretton
@cajstretton 5 жыл бұрын
Excellent tutorial - worked first time thanks!
@sentdex
@sentdex 5 жыл бұрын
Great to hear!
@asuiiiiiiii
@asuiiiiiiii 2 жыл бұрын
Great video, straight to the point!
@chrisvenn
@chrisvenn 4 жыл бұрын
Thanks for the great video very easy to follow
@nieder-olm
@nieder-olm 3 жыл бұрын
Worked perfectly. Thank you for sharing!
@brucehanson4147
@brucehanson4147 3 жыл бұрын
Just hover your courser over the Wifi symbol in the upper right and it will tell you the IP address. I used vnc connect remote with ease
@user-vh8bm3fw9w
@user-vh8bm3fw9w 4 жыл бұрын
It really helped me. Thanks! Greetings from Belarus!
@Trucker494
@Trucker494 2 жыл бұрын
Excellent video! Thank you very much
@vannigiovannigio8861
@vannigiovannigio8861 5 жыл бұрын
Thank you bud. Great straight forward work. Were those 39 disikes by strictly mac users?
@nkmicros540
@nkmicros540 6 жыл бұрын
Good job. quick and clear. For me worked that all =D
@user-xk5rx9xe6w
@user-xk5rx9xe6w 9 ай бұрын
Thank you sir. it's masterpiece
@johncraft9464
@johncraft9464 6 жыл бұрын
Wow 1 and 2 I followed pretty good but on 3 you just went super fast techy, dang!
@Townsy
@Townsy 6 жыл бұрын
thanks a lot for the easy and clear tutorial! New sub here
@nelewb4391
@nelewb4391 4 жыл бұрын
Do you have to smash the keyboard everytime you hit enter?
@wolfgangfleischmann3920
@wolfgangfleischmann3920 4 жыл бұрын
Thank you.great help.all worked right away.
5 ай бұрын
Helped a LOT
@suyashmohanty1451
@suyashmohanty1451 4 жыл бұрын
Hi I am facing connection issues while connecting through ssh if I'd is other than pi It's showing acess denied And secondly if I am shutdown configuration is not working through SSH or remote desktop Please help me out
@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, kzfaq.info/get/bejne/gL97jc2GzNqzias.html , the way he does it is a little different but worked without problems for me
@samfkt
@samfkt 6 жыл бұрын
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
@TheMdbProductions
@TheMdbProductions 4 жыл бұрын
For Mac Rdp you can use CORD
@aroberts3213
@aroberts3213 4 жыл бұрын
Pro tip. On windows 10 you can use PowerShell (built into Windows 10) to SSH
@mountain_bouy
@mountain_bouy 4 жыл бұрын
Thank you .. you saved my day
@kasenratliff1832
@kasenratliff1832 5 жыл бұрын
was working for so long then stopped.... i will get into the xorg login and when i enter my credentials i get a black screen then back to my ip selection page from when i first started the app. i try restarting my pi and the computer I am using to access it remotely. Nothing. I have tried doing the sudo apt-get remove for all of those packages, then installing them. No different. Is there a certain program on the Pi that this is required to run these? because for the sake of storage i went and deleted a bunch of files that came pre installed on it. The ssh and putty still works fine.
@zaori2785
@zaori2785 3 жыл бұрын
Didn't knew Snowden made those videos.
@gihanlakmal3723
@gihanlakmal3723 3 жыл бұрын
Thanks, dude, you save my time!!!!!
@MiniRockerz4ever
@MiniRockerz4ever 5 жыл бұрын
Thank you very much, happy New Year
@PADR
@PADR 6 жыл бұрын
Enjoyed the tut. Concise and to the point. Wish a few more KZfaq 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.
@DiemFabricati
@DiemFabricati 4 жыл бұрын
Many helps, thank you. I dag out my rasp pi b and making some hobby
@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
@JulianMakes
@JulianMakes 5 жыл бұрын
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
@TheColorman
@TheColorman 2 жыл бұрын
I just get stuck on a turqoise background, and "connection failed" shows up after a couple of minutes
@Fabretteable
@Fabretteable 6 жыл бұрын
Valuable content, thanks!
@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."
@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?
@a.ksingh11
@a.ksingh11 5 жыл бұрын
Thanks you sir..... I am from india . Thanks for you help......
@CiaphasCain21
@CiaphasCain21 5 жыл бұрын
It's You again!
@Mrkovv
@Mrkovv 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 ?
@kiddyboy1540
@kiddyboy1540 5 жыл бұрын
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!
@Manuelmort
@Manuelmort 4 жыл бұрын
Amazing tutorial!!
@berkiamohammed4681
@berkiamohammed4681 4 жыл бұрын
big thanks bro that helped me a lot :))))
@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!
@nachosacco5871
@nachosacco5871 4 жыл бұрын
Very useful! How can i use a pc editor and upload the code to the raspberry in order to work better?|
@napapt
@napapt 3 жыл бұрын
3:00 I don't guess that the warning is really "By the way, you're doing this and it's stupid" 😂😂😂
@MiffyDad
@MiffyDad 5 жыл бұрын
Great videos! It helps
@ricardobarakatquevedo2124
@ricardobarakatquevedo2124 5 жыл бұрын
Thanks, great tutorial
@kebuga
@kebuga 5 жыл бұрын
Gracias por tu ayuda! de frente al grano como debe de ser!
@omarshawky5859
@omarshawky5859 3 жыл бұрын
i have an error "initializing sound-support failed" which prevents me each time from connecting, any ideas?
@rolandorochajr.9084
@rolandorochajr.9084 5 жыл бұрын
I tried raspberry as the default password and it didn't work for ssh or vnc. So I changed the password via raspberry pi configuration and that seemed to work.
@vikaasvarma315
@vikaasvarma315 5 жыл бұрын
There is now a much easier way to connect to ssh using windows. Download the ubuntu subsystem off the windows store. Then, enable ssh on the pi and type ssh pi@ipaddress
@RogerDiotte
@RogerDiotte 2 жыл бұрын
Feb 2022 .... THANKS!
@t1mytun
@t1mytun 3 жыл бұрын
This seem to be only accessing a Rpi on a local LAN - 192.168.x.x. is only accessing wha'ts connected your local router - not WAN
@distortedmist
@distortedmist 6 жыл бұрын
Thank you!! So helpful :)
@sye7969
@sye7969 2 жыл бұрын
does raspberry pi also need to be powered on when accessed via putty configuration?
@fujifuji786
@fujifuji786 5 жыл бұрын
If I could leave you more than one like, I would.
@rasrahmani3087
@rasrahmani3087 5 жыл бұрын
You're awesome mate! Thanks
@user-zw1tq9vu1d
@user-zw1tq9vu1d 5 жыл бұрын
Hi thanks so much for the vids, helps alot as a beginner SSH connection works perfectly via WiFi but i cant seem to use 'xrdp' Running Win10 OS and downloaded the remote desktop from microsoft store, its a different version then in this vid. when trying to connect i just get "Couldn't connect". does anyone have some advice?
@ufcchampion3686
@ufcchampion3686 9 ай бұрын
Free palestine 🇵🇸☝️🇵🇸☝️🇵🇸☝️🇵🇸
@Adar999
@Adar999 3 жыл бұрын
I used XORG but it is not synced to my pi. When I make a change to my raspberry pi desktop via the remote desktop connection it doesn't sync to my actual pi... For example: When I open the terminal in my remote desktop window it doesn't open up the terminal on my pi. Can someone please help?
@subhadeepmandal3092
@subhadeepmandal3092 3 жыл бұрын
Please Help!!! I can't remotely control my raspberry pi using mouse and keyboard. This happened after I turned off screen to go blank and rebooted my pi. From next time when I connected my pi using windows remote Desktop Connection after it got connected I can see the screen of my pi but can no longer control it.
@arielbarbosa7337
@arielbarbosa7337 2 жыл бұрын
I installed raspberry to a virtual box.I use windows 10.HOw can I access my SD card through it?How can I make my environment read that SD card from my windows?
@braydonadams9517
@braydonadams9517 3 жыл бұрын
how do you have true screen mirroring? so it shows mouse moving on the actual respberry pi itself
@augustnicolaybroch9829
@augustnicolaybroch9829 6 жыл бұрын
Great! Helped a lot :)
@CarmoJams
@CarmoJams 5 жыл бұрын
Thank you!
@brushy
@brushy 3 жыл бұрын
THANK YOU!
@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 5 жыл бұрын
what if it dosent?
@jaytrivedi2539
@jaytrivedi2539 4 жыл бұрын
i can remote my raspberry pi 4 as you have shown but its showing me the other screen of raspberry and the changes made are not reflecting in actual raspberry pi 4 screen
@johnhewitt8784
@johnhewitt8784 3 жыл бұрын
What you didn't explain was ahere the command screen came from! Mine is the one associated wth the laptop. How do I get the one associated with the pi?
@taylangokkaya7061
@taylangokkaya7061 7 жыл бұрын
thanks, worked just fine
@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)?
@stopmotion-Dimitri
@stopmotion-Dimitri 5 жыл бұрын
hello, nice tutto. you can explain the same thing with 4g connection and mapping the box-modem? thanks
3 HACKING gadgets you have to TRY!!
19:34
NetworkChuck
Рет қаралды 1,5 МЛН
managed to catch #tiktok
00:16
Анастасия Тарасова
Рет қаралды 44 МЛН
Challenge matching picture with Alfredo Larin family! 😁
00:21
BigSchool
Рет қаралды 42 МЛН
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 18 МЛН
How to Check if Someone is Remotely Accessing Your Computer
16:58
Control your Raspberry Pi 5 from anywhere. Real VNC
7:50
leepspvideo
Рет қаралды 26 М.
How to VNC and SSH into raspberry pi (Full steps)
7:14
Let's do it
Рет қаралды 11 М.
WAY faster than a Raspberry Pi-but is it enough?
17:26
Jeff Geerling
Рет қаралды 667 М.
Run your own AI (but private)
22:13
NetworkChuck
Рет қаралды 1,4 МЛН