Score:0

Unattended 22.04 desktop remote access - how

us flag

I have a fresh 22.04 install laptop sitting on a shelf unattended.
SSH server is installed.
VNC also came along with the install.
These servers are running, NETSTAT shows their listeners active

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp6 0 0 :::5900 :::* LISTEN

I can approve SSH and Remote Desktop(VNC) from the settings/sharing menu
But
Both **require** me to have a local login active on this laptop, AND I have to accept an incoming VNC request on this local login.

  • I want this laptop to respond to SSH login as I would expect from a proper Linux host
  • I want this laptop to allow VNC sessions without intervention on the local desktop

VNC does not have to be installed
SSH is already installed
I should NOT have to use SSH to vnc into the laptop

Apparently some setting forces the OS to require local GUI active to allow both SSH and VNC access.

My single question is how do I override the requirement to have a local GUI session active to allow both SSH and VNC access?

Thanks Leo

user535733 avatar
cn flag
There is no single config file. An SSH server and VNC server must both be installed. SSH and VNC server (or RDP or x2Go) configs must be set up. An SSH key should be exchanged for basic security. If using VNC, an SSH tunnel should be set up for basic security. Then you are ready to begin remote desktop logins. It's unclear which element or config you are asking for.
Toot_Flügelhorn avatar
us flag
Thanks for reaching out. Yes, it says I did in the first line of the note
user535733 avatar
cn flag
Please [edit](https://askubuntu.com/posts/1438063/edit) your original question to add information or clarifications. Comments are how we try to help you make your question clear and answerable. Comments are not intended for conversation.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.