When that need arises, the most obvious choice of connection is VNC.With this handy networking tool, you can tunnel VNC through SSH, so not only are you not punching through the VNC port, but youre sending all data through an encrypted tunnel.You will instruct SSH to create a local tunnel that forwards localhost on port 5901 to a remote machines port 5901, only through the default SSH port (22).That, of course, means you must have access to the remote machine, via port 22.
If you dont have access to the remote machine, through SSH, this wont work. SEE: Information security policy template download (Tech Pro Research) What you need. This task will require the following: Local machine: SSH and a VNC viewer Remote machine: Openssh-server and a VNC server (such as TightVNC ). Create the tunnel The first thing to do is create the tunnel that routes packets from localhost (at port 5901) to the remote host (at port 5901) through port 22. If youve never SSHd to this remote host, you will be asked if you want to add the remote host to your local.sshknownhosts file ( Figure A ). This will assume you have the same username on both local and remote machines. If you do not, you can always add the remote username like so: ssh -L 5901:localhost:5901 USERREMOTEIP. Note: For an even more secure connection, I suggest you make use of SSH Key Authentication. See: How to set up ssh key authentication.) Connecting your VNC Client Now you need to fire up your VNC client. What does matter, however, is the address you use to make the connection. Instead of entering, say, 192.168.1.83:5901 for the remote address, enter localhost:5901. Why Because weve created an SSH tunnel from localhost:5901 to REMOTEIP:5901 (where REMOTEIP is the IP address of the remote machine). Once you click connect, your VNC client will use the encrypted SSH tunnel and make the connection between local and remote machines on port 5901. You should then be able to work on the remote desktop, using VNC, thanks to SSH. Not only is your VNC connection good to go, but its also more secure than if you had simply used the default VNC port. Hes covered a variety of topics for over twenty years and is an avid promoter of open source. For more news about Jack Wallen, visit his website jackwallen.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |