How to start a VNC session on mac-mini to remotely log in, not screen sharing?

On a mac mini, how can I log on with VNC remotely from a Linux workstation, without affecting the screen on the mac mini? I mean that I don't see the screen on the mac mini, and they don't see anything on their screen that I am connected or see my VNC "virtual" screen. I have an account on the mac mini and can log on locally. But need to log in remotely, while someone else is logged into the mac mini (or will log in) without interfering with each other.


Mac mini 2018 or later

Posted on May 19, 2021 5:03 AM

Reply
Question marked as ⚠️ Top-ranking reply

Posted on May 19, 2021 7:20 PM

I'm not sure it is possible on a Mac. All of the third party apps I know of will also affect and control the screen of the user working on the physical system. On Linux it is possible to create other virtual displays on the X Server of the system you want to connect to so you can connect to a Linux system and use the GUI without affecting a user logged into the physical Linux system.


If you don't need to use the GUI, then you can just ssh into the remote system although you will first need to enable this feature in the Sharing System Preferences.

Similar questions

16 replies
Sort By: 
Question marked as ⚠️ Top-ranking reply

May 19, 2021 7:20 PM in response to Community User

I'm not sure it is possible on a Mac. All of the third party apps I know of will also affect and control the screen of the user working on the physical system. On Linux it is possible to create other virtual displays on the X Server of the system you want to connect to so you can connect to a Linux system and use the GUI without affecting a user logged into the physical Linux system.


If you don't need to use the GUI, then you can just ssh into the remote system although you will first need to enable this feature in the Sharing System Preferences.

Reply

May 20, 2021 3:24 AM in response to BobHarris

Wanted to mark this as "answered my question" as well, but apparently can do that to only one.

But between the two answers I knew - it ain't gonna work, at least as I want.

I had already seen realvnc, but apparently it requires a 4 Euro per month subscription, not a solution.

Too bad, I wanted to learn (again) Mac OS (a lot changed since I started as a certified repair technician for Mac, "fat Mac", and Apple ][e). My friend wanted to give me access, but doesn't look like that's going to work. I'm just going to retreat back into my Linux world then.

Thanks to both for the responses!


Reply

May 20, 2021 10:49 AM in response to Community User

I'm not sure it is possible on a Mac. All of the third party apps I know of will also affect and control the screen of the user working on the physical system. On Linux it is possible to create other virtual displays on the X Server of the system you want to connect to so you can connect to a Linux system and use the GUI without affecting a user logged into the physical Linux system.


If you don't need to use the GUI, then you can just ssh into the remote system although you will first need to enable this feature in the Sharing System Preferences.

Reply

May 20, 2021 11:25 AM in response to SecretStudioReports

SecretStudioReports wrote:

If you can get a vnc client, that will do a macOS username & password login, and not a vnc password only login, then you can access a different account from the one logged in on the display.

The RealVNC Viewer (free) can make a macOS username & Password login. I've done it, logging into a different account than what is controlling the screen. There is someone at work that does it from a Windows system at home to their company Mac in the office (well that was before the Covid-19 work from home).

https://www.realvnc.com/en/connect/download/viewer/linux

Reply

May 21, 2021 5:39 AM in response to BobHarris

Thanks very much SecretStudioReports! That cleared things up, and it works very well. I had not tried that because I have realvnc on my (old) iPhone, and that only connects to the screen sharing, it doesn't prompt for a user name. Maybe that is possible in settings or something, but I don't need that. I can connect from my Linux machine, which is what I need. So I am very very happy now, and grateful for your help and everyone else who contributed.


THANKS!


Reply

May 21, 2021 8:48 AM in response to Community User

Alright I am an idiot. I was celebrating too soon. I didn't test well before posting.


This is still sharing one screen, just sometimes two. So I am waiting for my friend to get back so I can test further.


He is logged in, and I was using VNC. I went to test if I could switch to my screen on the computer, which I could. But there is no way for me to get back to using VNC only. Anything I do, even reconnecting with my username and password, I am still on the physical screen too. I had this situation before using tigervnc viewer and just the main screen sharing password. So nothing is better.


The point is I need to be able to connect, disconnect, and reconnect without any interaction from a user on the physical screen.


This is just unacceptable. We need to be able to independently log in and out, without seeing each others' screens. This seems to only work if someone is on the physical screen and is busy, then the second user can connect with VNC. But sooner or later, both end up sharing the same screen, unless perhaps being very careful.


I will try with realvnc server installed on the mac mini and see if that is a solution.


The most disappointing thing about this, is that there are a number of situations for clients, where a Mac mini or Mac pro could prove to be a solution if multiple users could use the computer, without seeing each other's screens. So now the only option is *nix, that I know of. If the needed software is available.


I will post more details, and the results of testing with realvnc server installed.


But this still does not work correctly. It may be a not-very-good work-around for some situations. And maybe ours, but it would require sharing log-in passwords, which I do not like at all. And would never recommend such a solution for a client.



Reply

May 21, 2021 5:26 PM in response to Community User

I do not use Linux as a workstation, so I cannot test what you are doing.


I have frequently used a Mac to connect to a separate account on another Mac while the user of that Mac has control of the screen, and there is never any interaction.


My Wife actually uses TurboTax on my personal Mac via Screen Sharing from her Mac. See does not have control of the physical screen, just a virtual screen.


I have experimented with RealVNC Viewer on 1 Mac and logged into a separate account that did not interact with the normal account controlling the physical screens.


NOTE: It is necessary to NOT use the VNC password, but rather use a separate macOS username & password account.


Actually, I would suggest disabling the VNC password, so it cannot be used. It is insecure anyway. That way there can be no confusion about how you are connecting to the Mac.


I could not get TigerVNC to use the macOS username & password, so I assumed TigerVNC only works with the VNC password and controls the physical screens.


As I said, I am not familiar with Linux as a workstation, so I do not know what VNC clients are available. Knowing the Open Source world, there are most likely a lot. I'm guessing many just use the VNC password, and not a username & password, but I hope more than just RealVNC offer username & password support (I could be wrong).


Once you are connected to a username & password macOS account, then keeping the virtual desktop separate from the user physically controlling the screen should all be macOS, and that has been available for years, and is well debugged software.

Reply

May 21, 2021 6:19 PM in response to BobHarris

BobHarris wrote:

I have frequently used a Mac to connect to a separate account on another Mac while the user of that Mac has control of the screen, and there is never any interaction.

NOTE: It is necessary to NOT use the VNC password, but rather use a separate macOS username & password account.

I had trouble connecting to my Mac using a Linux VNC client without enabling the VNC password. I didn't try to troubleshoot it too long, but I was never able to get the VNC client to connect to the Mac using a user name & password. I wasn't sure I was issuing the command correctly since the Linux VNC client documentation is a bit confusing (had trouble incorporating the ssh portion into one VNC command as well). As soon as I enabled the VNC password on the Mac, I could connect. This is perhaps some of the trouble the OP is having as well.


I could not get TigerVNC to use the macOS username & password, so I assumed TigerVNC only works with the VNC password and controls the physical screens.

I'm thinking the same thing as I have uses Tiger or Tight VNC (forget which) although the VNC client utility interface appears to have options for using the user name & password feature. I know connecting to another Linux system over VNC allows you to manually select a different "screen" if you start the VNCserver to create a new "screen". It has been a while since I had to connect to my other Linux system with VNC so I forget whether it used the username & password or just the VNC password.


As I said, I am not familiar with Linux as a workstation, so I do not know what VNC clients are available. Knowing the Open Source world, there are most likely a lot. I'm guessing many just use the VNC password, and not a username & password, but I hope more than just RealVNC offer username & password support (I could be wrong).

Remmina is a more full featured GUI app for Linux that might have more options as it uses a lot of different remote access & desktop protocols. I think there was another GUI app as well, but I don't recall its name since I chose Remmina once years ago when I was just learning how to connect remotely. I just wanted a GUI interface at the time. I haven't used it in years.



Reply

May 22, 2021 2:06 PM in response to Community User

Thanks for the further comments. I'm glad it works for BobHarris, but I've had a lot of "interference". Namely, my VNC connection is on the Mac mini's display. One time my friend came home and logged me out, thinking I had logged in locally. I was still connected and saw his desktop, including when he logged in. None of which was intended.


If anyone knows of a good solution (other users can connect with VNC, and that is never displayed on the Mac mini, and the VNC session never sees what is on the Mac mini display), I would like to know of it. But I expect that can only be achieved with a VNC server. Maybe with a different VNC client, I'll look for Remmina as well. The thing is the name is "screen sharing", and not "multiple user login" or something.


Otherwise, please consider this discussion dead. If anyone wants to read details, I have a page, and I will keep it updated (so I have future reference) as I go along.



[Link Edited by Moderator]


Reply

May 26, 2021 11:13 AM in response to HWTech

HWTech,

Are you trying to use the default VNC client (/bin/vncviewer). If that is the case, I do not think it includes macOS username & password login protocols.


The RealVNC client (free download) mentioned above, should include the macOS username & password protocols. I say should because I do not have a Linux workstation to experiment with.


Using the VNC password ALWAYS results in sharing the physical screen. It NEVER gives you a virtual screen. Only logging into a different username & password account will give the virtual screen.


And of course if you login to the account that has current control of the screen, then you get control of the physical screen as well. To get a virtual screen, you have to use a username & password that is different from the user logged into the actual Mac controlling the physical screen.

Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to start a VNC session on mac-mini to remotely log in, not screen sharing?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.