I downloaded the latest SVN code trunk r3658 and modified:
java/src/com/tightvnc/vncviewer/SshTunneledSocketFactory.java
I simply added the ability to look for a new command line argument: "SSHPORT"
and use that port # to connect. If not specified it will default to port 22.
Please see attached patch that implements additional functionality.
After applying patch, simply add additional port # as argument eg:
SOCKETFACTORY com.tightvnc.vncviewer.SshTunneledSocketFactory SSHHOST 192.168.0.2 HOST localhost PORT 5900 SSHPORT 12345
or full commandline (batchfile):
java -classpath jsch-0.1.52.jar;TightVncViewer.jar com.tightvnc.vncviewer.VncViewer SOCKETFACTORY com.tightvnc.vncviewer.SshTunneledSocketFactory SSHHOST 192.168.0.2 HOST localhost PORT 5900 SSHPORT 12345
jsch-0.1.52.jar library used for SSH support in TightVNC java client can be downloaded from:
http://www.jcraft.com/jsch/
This will allow you to connect to up to date ssh servers.
Hi Jamie,
Thank you for your patch, but Java viewer you used is obsolete for a long time.
Please try our recent viewer:
binary distribution: http://www.tightvnc.com/download/2.8.0/tvnjviewer-2.8.0-bin-gnugpl.zip
sources: http://www.tightvnc.com/download/2.8.0/tvnjviewer-2.8.0-src-gnugpl.zip
The viewer now has nicer swing interface, supports for SSH port setting and some other useful features.
Good to know.. I'll give that one a try.
Maybe it would be good to post some news on this SF project pointing people to the main website for 2.X versions. I knew there was a newer windows version than 1.X but I think I must have clicked on the OLD download page on the website by accident which directed me to these SF pages for the java viewer.