Это видео недоступно.
Сожалеем об этом.

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

Поделиться
HTML-код
  • Опубликовано: 2 апр 2017
  • 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

  • @sharp7171
    @sharp7171 2 года назад +3

    Probably the best tutorial I have ever watched

  • @demon562
    @demon562 5 лет назад +5

    Thanks man, I went to like 5 different tutorials before and none worked. Yours worked flawlessly! big ups

  • @DonMiggyg023
    @DonMiggyg023 3 года назад +1

    3 yrs later and it still WORKS!!!! YOU DA MAN!!!! Thanks Bro!!

  • @kain966
    @kain966 4 года назад +49

    I know the video is a bit dated, but man you explained it perfectly.

  • @AnyFactor
    @AnyFactor 4 года назад +2

    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

  • @linux82
    @linux82 6 лет назад +15

    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

  • @Lefachie
    @Lefachie 3 года назад +1

    What a time less video. I seem to always be finding myself coming back LOL . Thank you

  • @splosh2070
    @splosh2070 4 года назад +1

    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

  • @BlueyMcPhluey
    @BlueyMcPhluey 3 года назад +1

    I keep coming back to this video, thankyou

  • @wiley0714
    @wiley0714 6 лет назад +27

    This is the best video I found to date thank you

  • @888kilo
    @888kilo 3 года назад +2

    If I could like this video 1000 times I would. Thanks man, this was simple and straight to the point.

  • @dtmenges
    @dtmenges 3 года назад +1

    Nice video. Thanks for adjusting the size so that the commands in the terminal window are readable.

  • @ICe-ph5mr
    @ICe-ph5mr 2 года назад +1

    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

  • @moraus
    @moraus 4 года назад +1

    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.

  • @aidannotfunny
    @aidannotfunny 3 года назад +1

    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

  • @mansourmed6961
    @mansourmed6961 7 месяцев назад

    100% work , very simple and easy , i recommande this method for every one

  • @TobiasRuano
    @TobiasRuano 5 лет назад +3

    Simple and to the point. Excellent video!

  • @ZipSnipe
    @ZipSnipe 6 лет назад +1

    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

  • @AlejandroHernandez-qd5bj
    @AlejandroHernandez-qd5bj 2 года назад

    Absolute KING, this little kit I ordered off amazon skipped a few steps lol.

  • @levyeichelberg1210
    @levyeichelberg1210 5 лет назад +1

    Still working! Thank you soo much man! Very helpful, RUclips was made for people like you. :)

  • @ryansteller4918
    @ryansteller4918 6 лет назад +4

    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

  • @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

  • @CROXoDyLE
    @CROXoDyLE 4 года назад +1

    Great vid. Best explination by far. Keep up the good work man!

  • @imjoshwa
    @imjoshwa 3 года назад +11

    I forgot I was watching at x1.25 and holy crap were you typing fast.

  • @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 🤣🤣🤣

  • @bradserls7875
    @bradserls7875 3 года назад +1

    Thanks heaps for making this so so simple for me to follow along. Legend!

  • @tylerm8211
    @tylerm8211 5 лет назад +1

    Great video man , did exactly what I needed. Many thanks

  • @binflydushy
    @binflydushy 3 года назад

    Thanks vor the help. Best video on RUclips

  • @codingboy2254
    @codingboy2254 3 года назад +1

    Heart Warming Tutorials

  • @Trucker494
    @Trucker494 2 года назад

    Excellent video! Thank you very much

  • @mikesullivan3879
    @mikesullivan3879 4 года назад

    Exactly what I needed and if you disconnect the hdmi it still works

  • @asuiiiiiiii
    @asuiiiiiiii 2 года назад

    Great video, straight to the point!

  • @chrisvenn
    @chrisvenn 4 года назад

    Thanks for the great video very easy to follow

  • @cajstretton
    @cajstretton 5 лет назад +1

    Excellent tutorial - worked first time thanks!

    • @sentdex
      @sentdex  5 лет назад

      Great to hear!

  • @nieder-olm
    @nieder-olm 3 года назад

    Worked perfectly. Thank you for sharing!

  • @user-vh8bm3fw9w
    @user-vh8bm3fw9w 4 года назад

    It really helped me. Thanks! Greetings from Belarus!

  • @vannigiovannigio8861
    @vannigiovannigio8861 5 лет назад +1

    Thank you bud. Great straight forward work. Were those 39 disikes by strictly mac users?

  • @nkmicros540
    @nkmicros540 6 лет назад +3

    Good job.
    quick and clear.
    For me worked that all =D

  • @simonchan2394
    @simonchan2394 6 лет назад +1

    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.

  • @user-xk5rx9xe6w
    @user-xk5rx9xe6w 9 месяцев назад

    Thank you sir. it's masterpiece

  • @nelewb4391
    @nelewb4391 4 года назад +2

    Do you have to smash the keyboard everytime you hit enter?

  •  5 месяцев назад

    Helped a LOT

  • @CedricMialaret
    @CedricMialaret 5 лет назад +1

    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

  • @wolfgangfleischmann3920
    @wolfgangfleischmann3920 4 года назад

    Thank you.great help.all worked right away.

  • @ShitBrick785
    @ShitBrick785 5 лет назад

    If you want to get to the config easier. Click on the raspberry at the top left -> Preferences -> Raspberry Pi Configuration

  • @Townsy
    @Townsy 6 лет назад +1

    thanks a lot for the easy and clear tutorial! New sub here

  • @mountain_bouy
    @mountain_bouy 4 года назад

    Thank you .. you saved my day

  • @michaelbishton9439
    @michaelbishton9439 6 лет назад +15

    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 лет назад +1

      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, ruclips.net/video/JYKZjUgtOYw/видео.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 лет назад +1

      @@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

  • @gihanlakmal3723
    @gihanlakmal3723 3 года назад

    Thanks, dude, you save my time!!!!!

  • @kasenratliff1832
    @kasenratliff1832 5 лет назад +1

    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.

  • @johncraft9464
    @johncraft9464 6 лет назад

    Wow 1 and 2 I followed pretty good but on 3 you just went super fast techy, dang!

  • @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?

  • @DiemFabricati
    @DiemFabricati 4 года назад

    Many helps, thank you. I dag out my rasp pi b and making some hobby

  • @berkiamohammed4681
    @berkiamohammed4681 4 года назад

    big thanks bro that helped me a lot :))))

  • @MiniRockerz4ever
    @MiniRockerz4ever 5 лет назад

    Thank you very much, happy New Year

  • @JulianMakes
    @JulianMakes 5 лет назад +1

    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

  • @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!

  • @suyashmohanty1451
    @suyashmohanty1451 4 года назад +1

    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

  • @CiaphasCain21
    @CiaphasCain21 5 лет назад +2

    It's You again!

  • @a.ksingh11
    @a.ksingh11 5 лет назад

    Thanks you sir.....
    I am from india .
    Thanks for you help......

  • @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 ?

  • @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

  • @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."

  • @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

  • @Manuelmort
    @Manuelmort 4 года назад

    Amazing tutorial!!

  • @kebuga
    @kebuga 5 лет назад

    Gracias por tu ayuda! de frente al grano como debe de ser!

  • @ricardobarakatquevedo2124
    @ricardobarakatquevedo2124 5 лет назад

    Thanks, great tutorial

  • @MiffyDad
    @MiffyDad 4 года назад

    Great videos! It helps

  • @nachosacco5871
    @nachosacco5871 4 года назад +1

    Very useful! How can i use a pc editor and upload the code to the raspberry in order to work better?|

  • @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.

  • @augustnicolaybroch9829
    @augustnicolaybroch9829 6 лет назад

    Great! Helped a lot :)

  • @200134987
    @200134987 6 лет назад +1

    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!

  • @sye7969
    @sye7969 2 года назад

    does raspberry pi also need to be powered on when accessed via putty configuration?

  • @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?

  • @braydonadams9517
    @braydonadams9517 3 года назад

    how do you have true screen mirroring? so it shows mouse moving on the actual respberry pi itself

  • @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.

  • @TheAakoo123
    @TheAakoo123 2 года назад

    Hi, i had a problem with remote desktop. The Pi and pc must be in the same wlan or eth. I had pi on wlan and pc in eth, i did not work. I tried with my laptop in wlan and it worked. Is there a way to use it from eth or even from another network?

  • @rasrahmani3087
    @rasrahmani3087 5 лет назад

    You're awesome mate! Thanks

  • @distortedmist
    @distortedmist 6 лет назад

    Thank you!! So helpful :)

  • @PADR
    @PADR 6 лет назад

    Enjoyed the tut. Concise and to the point. Wish a few more RUclips 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.

  • @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

  • @fujifuji786
    @fujifuji786 5 лет назад

    If I could leave you more than one like, I would.

  • @RijuChatterjee
    @RijuChatterjee 4 года назад

    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.

  • @sahithyadevee727
    @sahithyadevee727 3 года назад

    hello,
    I have a problem with the vnc server whenever i open my raspberry pi in vnc viewer for few minutes it will be alright and after that i get like attempting to reconnect with the vnc server and the connection was closed remotely. can you please help me out with this and give a solution to it

  • @rolandorochajr.9084
    @rolandorochajr.9084 5 лет назад +1

    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.

  • @rasrahmani3087
    @rasrahmani3087 5 лет назад +1

    Hey mate, I couldn't find any answer to my question online. I ask it here as you seem to know it:
    I want to connect to a raspberry pi remotely which is connect to a different router (in another city). So I the IP address of 192.168.1.XX does not seem to be the only thing I enter in PuTTY. Can you help me with the setting required for this connection?
    Thanks

    • @rayshumway247
      @rayshumway247 5 лет назад

      make sure you have the right ip address a lot of times it will change you need the Pi thats in another city to have static ip address (it wont change)

  • @brushy
    @brushy 3 года назад

    THANK YOU!

  • @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

  • @taylangokkaya7061
    @taylangokkaya7061 6 лет назад

    thanks, worked just fine

  • @user-zw1tq9vu1d
    @user-zw1tq9vu1d 5 лет назад +1

    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 8 месяцев назад

      Free palestine 🇵🇸☝️🇵🇸☝️🇵🇸☝️🇵🇸

  • @shwetachavan751
    @shwetachavan751 6 лет назад +1

    I installed raspberian on windows 10.and after running putty configuration window putty fatal error is coming with a message network error:connection time out so i could not see the login id to enter further.how do i solve this error?

  • @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?

  • @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?

  • @aroberts3213
    @aroberts3213 4 года назад

    Pro tip. On windows 10 you can use PowerShell (built into Windows 10) to SSH

  • @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)?

  • @omarshawky5859
    @omarshawky5859 3 года назад

    i have an error "initializing sound-support failed" which prevents me each time from connecting, any ideas?

  • @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?

  • @akhtarzaman2189
    @akhtarzaman2189 4 года назад

    Where did you get the hoodie from? It's a nice and simple design.

  • @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?