Menu

#96 Tightvnc java viewer - patch to allow alternate SSH PORT

open
nobody
None
5
2015-04-06
2015-04-02
Jamie
No

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
1 Attachments

Discussion

  • Jamie

    Jamie - 2015-04-02

    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.

     
  • Jamie

    Jamie - 2015-04-06

    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.

     

Log in to post a comment.