Remote access - ssh VNC etc - help needed please

Hi, I have Googled for days but finally hoped to get some advice in here! My knowledge level of the subject is low and so I can't understand most of the online info.


I am going travelling (with my work) and I could be away a long time. I want a server/computer to remotely connect to to upload files (photos and videos mainly) to securely store it, so if i lose my laptop (macbook) or phone etc, I don't lose all the media i took along the way. A friend suggested I rent a VPS (linux or windows, not too fussed) to connect to from my macbook when needed. (I could also set up a Mac Mini which my friend will keep connected at his house to use as my remote machine, if I can't suss out how to connect to VPS)


Where I am badly STUCK, is HOW to connect to a VPS. None of the companies I have asked will give instructions (at idiot level, for me) on making the connection. They just say "you can use SSH", but I have no idea how to use SSH. All my research shows that SSH gives a Terminal to Terminal command, I am no programmer, command line is scary for me. I have used it once or twice, but really have no clue what I am doing (unless instructed as I was when i used it).


So my question is... How do I connect to a VPS (or a remote mac mini) via SSH from Mac OS TO GET GUI use of the virtual machine? I need to have GUI, whether its linux or Mac os, I need finder, web browser, maybe email program installed.


I saw that I can subscribe to VNC Server but that adds another cost, and I am sure there should be a way to get GUI access to a remote machine within the offerings provided by Apple in Mac OSX already. Just can't work out how. Maybe someone can advise?!


Thanks for any input



MacBook

Posted on Nov 23, 2020 4:13 AM

Reply

Similar questions

6 replies

Dec 7, 2020 9:27 AM in response to tentoseven

You would want to first establish a secure connection over SSH, then you can use macOS ARD built into the Finder to connect to the VNC connection. Establishing the SSH connection so that VNC will work is the tricky part as you need to use the proper ports. You will need to know which port is being used for the VNC video connection on the VPS. Once you know that you can use the following template to create a secure SSH tunnel to the VPS using the command line in the Terminal app:

ssh  -C  -N  -L  5944:localhost:<vps-port>   <vps-user>@<vps-ip-dnsname>


Replace "<vps-port>" with the display port used for the VNC server on the VPS.

Replace "<vps-user>" with a valid user account on the vps.

Replace "<vps-ip-dnsname>" with the IP address or DNS name of the vps you want to connect to.

The "5944" port can actually be any unused port number. Most instructions and examples online have it as "5901" which can get confusing when trying to understand how the whole thing works especially when the VNC video port is 5901. I just like to keep them different so I have a bit of a chance of remembering how this command works.


Once you establish the secure connection, just click on "Go" in the Finder and select "Connect to Server ..." and type:

vnc://<vps-ip-dnsname>:<vps-port>


Where you again replace the items in angle brackets with the correct information described earlier. Then you should be able to enter your password(s). You may need to first provide the VNC password before you provide the VPS user account password depending on how the VPS is configured.

Dec 1, 2020 8:21 AM in response to tentoseven

Hey there tentoseven,


Thanks for reaching out to Apple Support Communities. We understand you’d like to know how to access another computer remotely from your Mac. We’ll be happy to help with this.


If you have a Mac mini that you can use, you should be able to follow the exact steps in this link to set up the remote access:


Allow a remote computer to access your Mac


We hope this helps. 


Take care. 

Jan 9, 2021 12:25 PM in response to tentoseven

tentoseven wrote:

This was a great response, thank you.
However I am not 100% clear, but I have made progress..

I have learned a fair bit (feels like it anyway!) in past few days. I have secured the VPS by closing all ports except the new one I opened for ssh (I closed the default 22), plus 80 and 443 for browser. That's all for now while I keep learning :)

I am not very knowledgeable about the details either. I tried to post in a manner that would give you the best chance of understanding the different ports since most instructions use the same numbers which make it hard to figure out what is happening.

However, I am yet to get to a GUI. Was the advice you gave relevant to getting to GUI? I have installed XFCE DE, not got to it yet, still in terminal!!

Do I need a VNC "program", like VNC Viewer to go with your instructions?

I am not familiar with VPS. If it is a Linux distribution and it is using XFCE, then you need to make sure that you have a VNC server installed and that the VNC server is running. IIRC, you also need to configure XFCE. Here is a simple instructions for installing, configuring, and starting a VNC Server for XFCE:

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-20-04


There are some Linux solutions that provide a GUI interface such as Remmina:

https://www.ubuntupit.com/fast-and-secure-remote-desktop-clients-for-linux/


I found an app called X2GO which looks promising, but if you're saying Mac has something built in already which can open the GUI on the target VPS machine, that's awesome and I will definitely give that a whirl! thanks again

There are multiple methods of accessing a remote system especially over the Internet. Some are open source and others are paid proprietary options. NoMachine is one option (I is proprietary, but I believe their is an open source app using their protocol), LogMeIn, TeamViewer, etc.


Jan 9, 2021 2:38 AM in response to HWTech

This was a great response, thank you.

However I am not 100% clear, but I have made progress..


I have learned a fair bit (feels like it anyway!) in past few days. I have secured the VPS by closing all ports except the new one I opened for ssh (I closed the default 22), plus 80 and 443 for browser. That's all for now while I keep learning :)


However, I am yet to get to a GUI. Was the advice you gave relevant to getting to GUI? I have installed XFCE DE, not got to it yet, still in terminal!!


Do I need a VNC "program", like VNC Viewer to go with your instructions?


I found an app called X2GO which looks promising, but if you're saying Mac has something built in already which can open the GUI on the target VPS machine, that's awesome and I will definitely give that a whirl! thanks again

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.

Remote access - ssh VNC etc - help needed please

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