Remote login via SSH

RDP-ing is a breeze when there’s at least someone logged into the server (“remote”). However, what do you do when you first have to log in via ssh? How do you log in via ssh?

More detail: Not sure what it is in precise technical terms that I am asking, so please bear with me: it looks like when the remote machine is not yet logged into, one also needs to start a Wayland session, or a GNOME session, or both. How does one do that via ssh?

Edit: from what I’ve seen it’s also gotta have something to do with unlocking the Gnome Keyring … or something.

uhh… ssh user@host ?

I am already SSH-ing into the remote computer, that is not the issue. What I cannot do at this point in time is to RDP into it when no one is logged in locally (on the remote machine). So I somehow need to start a Wayland/GNOME(?) session on the remote computer via SSH.

have you tried making it systemd service?

When you say use RDP’ing are you talking about logging into a running VNC server session?

The VNC server session involves starting a gnome-session in it’s start up script. The vnc server session is like a virtual gnome-session (or some other type X11 x-windows or Wayland session). Look in the .vnc directory for the xstartup script. It has code to
start up various type of x-windows sessions. Modify it to start a gnome-session as shown:

comment out the other types of sessions.

if [ -x /usr/sbin/gnome-session ] ; then
exec /usr/sbin/gnome-session

Also setup an alias in your .bashrc with a one liner to start your vnc server session.

alias vnc51=‘vncserver :51 -name RemoteDesktop -depth 32 -geometry 1905x1000’
The vnc session is looking for connections at tcp port 59XX XX 50 to 99.

You will need to setup a password for vnc do this by executing vncpass.

1 Like

I am talking about starting a new RDP (gnome-remote-desktop) session on the target machine. And yes, that may require starting a GNOME session on the target machine.

@Aqua1ung Where you able to get this all to work as you had envisioned?
I am assuming from information I was able to glean from a web search, you should be able to start a remote desktop session by a setting in a gnome session, no VNC involved at all.
If this works, does that mean you could connect to the server (target machine) with a remote desktop client from windows, mac os or other? Do you need a client software to be compatible with gnome-remote-desktop? For example, I don’t think Windows mstsc would work, if it did that would be great.

As far as a setting to start a gnome-remote-desktop in the gnome-session setting I was not able to find one. I have updated to the latest Clear-Linux version.

Apologies, I haven’t had time to look into this. It’s on my todo list for mid-Sept.

I found this URL: How to use the new Gnome Shell remote desktop feature - Addictive Tips Guide

They say in the page that if gnome-remote-desktop is running (on the target machine) you could use Windows mstsc, I am assuming that other OS’s version of a remote desktop client would also work.
I will dig around a little more. This would be nice if the gnome-remote-desktop works as promised/described my assumption you could have a server running with high end applications, and multiple users could access it, with the same security expectation as if one was at the console of the server. No using/creating a vnc passoword etc… just like X-windows in the old days but with a server session running that contains the session state, if the connection is lost, you don’t lose all of your work.

1 Like

I tried to connect using Windows RDP application mstsc to my Clear Linux server. I experienced the same or similar issues as expressed in this posting from GitHub URL for Clear-Linux.

It looks like it want’s to work, but authentication is not working. I cannot access my home server which is my samba AD/PDC. This would be great if it worked. It looks like this has been an issue identified from
October 2022.