00:01what's up guys please make sure you subscribe like share and comment and why not become a
00:06member I thought of showing you how to establish a VNC connection through SSH to make it more
00:13secure on Mac OS I did the same on Linux it's not any different than it however maybe it's
00:22worth doing and demonstrating you need to make sure that you know the IP address of your VNC server
00:33you need to also know its users password and I will show you the command the command is SSH
00:46username of your target at IP address and then dash uppercase L
00:58and then you choose a port that you want to route the connection into I believe it's something higher
01:08than 1000 or 1000 let me choose for instance 6000 and then colon localhost and then colon 5901
01:25the original port of VNC and sometimes it's 5900 like this let's try with
01:42a real example the IP address of my VNC server is like this
02:06and the user name I'm gonna replace with the one that I have and then press enter
02:18it will prompt you for the password of that user
02:43then enter and then you open the screen sharing app and then you type localhost
03:00colon and the port that you chose it is this one which is 6000 enter here you type the user
03:12name
03:12and the password or password of VNC there are two options sometimes you get the user name and the
03:20password I usually saw it in some Mac machines and sometimes you type the password of VNC which you can
03:29change by type in VNC passwd
03:33is it the same here that's for Linux VNC pass let's see if we if I if it exists on
03:44Mac
03:49passwd no so you need to change it from the preferences system
03:57type here you type here the username and the password and you can see that we are connected to this
04:10VNC server in my case it's another Mac it can be any other machine regardless of the platform that it
04:18is using
04:20In case you wanted to establish the tunnel this is the tunnel in case you wanted to make it without
04:31logging into your SSH server this is this has a VNC and an SSH server you establish the tunnel and
04:46simply quit
04:47the command the command becomes like this dash F dash uppercase N let's try it
05:06it made the tunnel and then left didn't get into the SSH server
05:21our screen sharing app again and it's still the same localhost 6000 and we can see that it found it
05:35if we sign in it should take us into it the VNC server
05:45anyway that makes it for this video and see you
Comments