I want to remote into the linux server from a windows pc for convenience in working with the server.
I created a user "saducee" with a unique password for testing. I was thinking it might be easier for a user without admin rights to rdp in. I went through steps to get xrdp configged to accept this user.
Now I'm wondering why it says "ip 127.0.0.1" when my machine is clearly IP 10.0.0.123. Hmmmm. I will look up
I read that Remote Desktop Protocol (RDP) is a good option so I installed Xrdp
sudo apt install xrdp
IP address of server machine:
eno2:
inet 10.0.0.123/24
inet6 2601:601:1:1100::2396/128
First step is to install Remote Desktop Protocol (RDP) server xrdp on the Ubuntu 20.04 desktop. To do so execute the following command:
$ sudo apt install xrdp
Enable to start after reboot and run the remote desktop sharing server xrdp:
$ sudo systemctl enable --now xrdp
Still on the Ubuntu 20.04 desktop, open a firewall port 3389 for an incoming traffic:
$ sudo ufw allow from any to any port 3389 proto tcp
I successfully remoted into the server from my Windows PC! But it didn't log in properly. :(
Upon my attempts to rdp in from Windows 10 pc, I got this error:
Connecting to sesman ip 127.0.0.1 port 3350
sesman connect ok
sending login info to session manager, please wait...
login successful for display 10
started connecting
connection problem, giving up
some problem
I searched the web and found this solution: https://unix.stackexchange.com/a/630124/416459
and perhaps another step or two that voided the need for specifying a port and configuring xrdp to know about the user "saducee".
Now I just get a blank screen then connection dies after some time with no other message and I'm left looking at the rdp start screen.
xrdp change ip address config
I susppect this might be due to the fact that this is a sudo user... but not sure. I will try adding a new user and log in with that person.
Comments
Post a Comment