How to Encrypt VNC Traffic with Putty Rumi, December 9, 2015 By default, VNC is not secure protocol.VNC uses encryption during initial connection and login (passwords are not sent in plain-text). Once, we connected then all the VNC data is unencrypted and hacker could sniff our VNC session. It is better (safer) to start VNC server only on 127.0.0.1(localhost) and tunnel it over secure SSH tunnel (For this,there are options in Putty). In this example, I am using CentOS 6.2 as VNC server and VNC Viewer & PuTTY as VNC client on Windows 7. On CentOS, edit /etc/sysconfig/vncservers file: sudo nano /etc/sysconfig/vncservers Add the option “-localhost“: VNCSERVERS="1:arbab 2:ali" VNCSERVERARGS[1]="-geometry 1024x600 -localhost" VNCSERVERARGS[2]="-geometry 1024x600 -localhost" Restart the VNC Service: sudo service vncserver restart Below steps illustrate how to connect to VNC Server through PuTTY(SSH) from Windows Machine. Run PuTTY,enter the IP address or hostname of the VNC Server: On the left-hand panel, Go to Connection -> SSH -> Tunnels: Source Port:590x(Where x is a value that we set in vncservers file,like 1 for arbab) Destination:localhost:590x(Same x value that we used above in source port) Click Open button in order to connect to the Server via SSH: Login to the CentOS (VNC Server) with username and password: Upon successful connection to VNC Server, we’ll find port 5901 is in listening mode on localhost: netstat -a Run VNC Viewer and enter the localhost:1(:1 is for arbab user, that we defined in vncservers file): Enter the password, in order to connect to the VNC Server: Now, we are connected to remote VNC Server through ssh tunnel: Hope this will help you! Src: https://rbgeek.wordpress.com/2012/06/27/how-to-encrypt-vnc-traffic-with-putty/ Related Configurations (Linux) CentOSPuttyVNC
Recover MySQL root Password December 27, 2011 You can recover MySQL database server password with following five easy steps. Step # 1: Stop the MySQL server process. Step # 2: Start the MySQL (mysqld) server/daemon process with the –skip-grant-tables option so that it will not prompt for password. Step # 3: Connect to mysql server as the… Read More
Deploy a Laravel app on Oracle Cloud with database November 17, 2023 Assumptions: Ubuntu 22 PHP 7.3 Laravel 5.5 Apache 2 PHP-Redis Download the public and private keys on your local machine. You have created your VM instance! Create an always free Autonomous Database [if your application uses a database] Select your desired database After creating your database, go to “DB Connection”… Read More
Deploying a J2EE application behind an Apache server in a production environment April 20, 2012 You have created a Web application using a JBoss application server and you are going to put it in production. Great! But deploying your application with JBoss serving the Web requests directly may not be the optimal solution. First because the Tomcat web server embedded within JBoss is not the… Read More