IDNT / vncsnapshot

VNC Snapshot is a command line utility for VNC (Virtual Network Computing) available from RealVNC, among others. The utility allows one to take a snapshot from a VNC server and save it as a JPEG file. Unix, Linux and Windows platforms are supported. The original source is located at https://sourceforge.net/projects/vncsnapshot/
GNU General Public License v2.0
15 stars 5 forks source link

Can not assign IPv4 param to tunnel #3

Open yhojann-cl opened 4 months ago

yhojann-cl commented 4 months ago

By example:

vncsnapshot -tunnel root@server:1 img.jpg;
processTunnelArgs:  ARGV[0]=vncsnapshot
    ARGV[1]=-tunnel
    ARGV[2]=root@server:1
    ARGV[3]=img.jpg
tAI=1: -tunnel
tAI+1: root@server:1
    ARGV[0]=vncsnapshot
    ARGV[1]=localhost::5599
    ARGV[2]=img.jpg
bind [::1]:5599: Cannot assign requested address
Successfully runCommand(/usr/bin/ssh -f -L 5599:localhost:5901 root@server sleep 20)
ReadFromRFBServer: rdr::EndOfStream

The app try connect to a ipv6 address and fails, but can connect manualy from ssh works fine:

ssh -N -T -4 -L 5900:127.0.0.1:5900 root@server;

How to pass -N, -T and -4 argument to ssh command?, in the server the authorized_keys file is restricted:

restrict,port-forwarding,permitopen="127.0.0.1:5900",command="/bin/true" ssh-rsa AAAA...