VNC with SSH
Want to connect to Linux in your Win OS without tedious config? Try Vnc. Try to use without compromising your security principle, VNC + SSH may be an option.
1. Install vnc
There are several free distributions: Tightvnc, Realvnc.
Follow the installation guilde and config ~/.vnc/xstartup
#!/bin/sh
xrdb $HOME/.Xresources
#xsetroot -solid grey
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
unset SESSION_MANAGER
gnome-session &
#startkde & ( for kde)
2. In Win OS, use SecureCRT to tunnel vnc request from local host (Win) to secure port in remote host (Linux).
Install SecureCRT with commandline support and add it to PATH. Then write a script to establish the secure tunnel
secureCRT /SSH2 /L greenw /I "D:/id_rsa.pub" /P 22 /Z 5 /LOCAL 5901:xxx.xxx.xxx.xxx:5908 xxx.xxx.xxx.xxx
You can check secureCRT options about the command line above.
/I the path store the public key
/P the SSH listenning port number in remote host, 22 is default in Linux
/Z compression level
/LOCAL map the local port 5901 to remote host port 5908
3. vncserver use port number starting from 5900, if you start vncserver with vncserver:8, then vncserver will listen to port 5908; for local vncviewer, you should use localhost:1
and you can see the remote desktop in a secure way.

0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home