Setup Raspberry Pi Remote Access

Back to Raspberry Pi index

Enable remote login via a terminal (ssh <host>)

From Raspberry Pi, find the IP
use the network connection icon, or from a terminal
hostname -I
From a network connected computer, open a terminal or command prompt, use: ssh <pi IP>
Bonus: from linux or Mac, use the -X (or -Y if -X doesn't work) to allow popups
ssh -X pi@<pi IP>

Enable remote full desktop access

use RDP on the Raspberry Pi, via xrdp
sudo apt-get update
sudo apt-get upgrade
maybe: sudo apt-get autoremove
sudo apt-get install xrdp
additional info: sudo service xrdp start | stop | restart | status
Remote Desktop Connection application on Windows
Next to “Computer:” enter your Raspberry Pi’s local IP address
Download “Microsoft Remote Desktop” from the MAC App Store, and connect similarly
“Microsoft Remote Desktop” is also available for Android and iOS.


Strange Issue, RDP→XRDP to raspberrypi does not work for root or 'pi' users
Solution: create another user

For anyone coming here looking for the answer: to fix this, this may help.
You need to create another user. The Pi root user cannot RDP for whatever reason.

  sudo adduser <username>
  Choose password
  Confirm password
  Hit enter for defaults

Try RDP again with that login

Reference: https://raspberrytips.com/remote-desktop-raspberry-pi/
https://www.reddit.com/r/raspberry_pi/comments/qw1cdw/raspberry_pi_4_xrdp_windows_10_remote_desktop/

see more:
https://techsphinx.com/raspberry-pi/remote-desktop-raspberry-pi/
https://techsphinx.com/raspberry-pi/enable-x11-forwarding-on-raspberry-pi/#setup-x11-forwarding-on-raspberry-pi
https://techsphinx.com/raspberry-pi/enable-and-setup-raspberry-pi-vnc/

Back to Raspberry Pi index