![]() ![]() PuTTY is SSH client for Windows, using that you can set SSH tunnel. On above command replace username with your real username and your_server_ip with your remote server ip address. It will ask you to enter password so enter it and hit Enter key to continue. Set Up SSH Tunnel on Linux and macOS #įor Linux, macOS or any other Unix-based operating system on your machine, you can simply create an SSH tunnel using following command: ssh -L 5901:127.0.0.1:5901 -C -N -l username your_server_ip Thus, it will forward traffic securely from local client system to host system. So it’s advisable way to use an SSH tunnel to connect securely to our server. VNC is not using any secure protocols when make connection. Log file is /home/tecnstuff/.vnc/debian:1.log Connecting to VNC server # It will show output as below: New 'X' desktop is debian:1 Now, restart the VNC server by typing: vncserver ![]() Run the below command: sudo chmod +x ~/.vnc/xstartup We’ll need to make ~/.vnc/xstartup file executable so to use startup file properly. Make changes as above after that save and close file. To do it generate a new file using: nano ~/.vnc/xstartup #!/bin/bash Now VNC needs to configure to know which graphical desktop it should connect to. Killing Xtightvnc process ID 1767 Configuring the VNC Server # VNC can launch multiple instances on other display ports, like :2, :3, and so on.īecause we are going to be changing how the VNC server is configured, first stop the VNC server instance that is running on port 5901 with the following command: vncserver -kill :1 Output This port is called a display port, and is referred to by VNC as :1. ![]() When VNC is first set up, it launches a default server instance on port 5901. Log file is /home/tecnstuff/.vnc/debian:1.logĪfter run the vncserver command for first time, it will generate and store password file in ~/.vnc directory. Starting applications specified in /home/tecnstuff/.vnc/xstartup Xauth: file /home/tecnstuff/.Xauthority does not existĬreating default startup script /home/tecnstuff/.vnc/xstartup Remove this file if there is no X server debian:1 Warning: debian:1 is taken because of /tmp/.X11-unix/X1 ![]() Would you like to enter a view-only password (y/n)? You will require a password to access your desktops. If you have set up a view-only password then you will not be able to interact with the remote desktop with mouse and keyboard. It will also ask for whether to set password as a view-only password. It will prompt to enter and verify a password to access your desktop remotely. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |