Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VNC over a SSH connection
#1
Hi There

I was wondering if ASG remote desktop supports VNC over a SSH connection?

thanks in advance

André
Reply
#2
(15-07-2019, 07:14 AM)CIENL Wrote: Hi There
I was wondering if ASG remote desktop supports VNC over a SSH connection?
thanks in advance

André

Hi,
yes, by creating an external app with putty to build an ssh tunnel to the destination host. Then use that tunnel as prestart app for the VNC connection.
For example on the destination host you have the ssh server running and you create a VNC session that hears on port 5901. On the client you create a "tunnel session" with putty that tunnels localhost Port 5901 to destination 5901 over ssh. That tunnel-session could be used as an external app definition.
Then you create an VNC connection with destination "localhost:5901" so VNC will be routet through the ssh tunnel to the destination.

Just tested that with username / password as variables from the internal password store but that should also be possible more secure by using a key-file.
Please note that the ssh tunnel won't be closed automatically if the ASG-RD session is closed.
connection properties vnc:
[Image: attachment.php?aid=3721]

connection properties vnc pre start app:
[Image: attachment.php?aid=3722]

external app definition:
[Image: attachment.php?aid=3723]

putty tunnel config:
[Image: attachment.php?aid=3724]


Attached Files Thumbnail(s)
               
best regards,
Michael -- michael.scholz@asg.com --
Reply
#3
Michael Scholz Wrote:Thanks in advance I will let you know


CIENL Wrote:Hi There
I was wondering if ASG remote desktop supports VNC over a SSH connection?
thanks in advance

André

Hi,
yes, by creating an external app with putty to build an ssh tunnel to the destination host. Then use that tunnel as prestart app for the VNC connection.
For example on the destination host you have the ssh server running and you create a VNC session that hears on port 5901. On the client you create a "tunnel session" with putty that tunnels localhost Port 5901 to destination 5901 over ssh.  That tunnel-session could be used as an external app definition.
The you create an VNC connection with destination "localhost:5901" so VNC will be routet through the ssh tunnel to the destination.

Just tested that with username / password given as variables from the internal password store but that should also be possible more secure by using a key-file.
Please note that the ssh tunnel won't be closed automatically if the ASG-RD session is closed.
connection properties vnc:
[Image: attachment.php?aid=3721]

connection properties vnc pre start app:
[Image: attachment.php?aid=3722]

external app definition:
[Image: attachment.php?aid=3723]

putty tunnel config:
[Image: attachment.php?aid=3724]
Reply
#4
CIENL Wrote:Hi Michael

It's possible to make the connection within this configuration, but it starts with an error 10061: failed to connect to server localhost.
Putty is started, after logging with putty and starting the vnc configuration again, it possible to make the connection.

Is there a workarround for this issue?

Thanks

Michael Scholz Wrote:Thanks in advance I will let you know


CIENL Wrote:Hi There
I was wondering if ASG remote desktop supports VNC over a SSH connection?
thanks in advance

André

Hi,
yes, by creating an external app with putty to build an ssh tunnel to the destination host. Then use that tunnel as prestart app for the VNC connection.
For example on the destination host you have the ssh server running and you create a VNC session that hears on port 5901. On the client you create a "tunnel session" with putty that tunnels localhost Port 5901 to destination 5901 over ssh.  That tunnel-session could be used as an external app definition.
The you create an VNC connection with destination "localhost:5901" so VNC will be routet through the ssh tunnel to the destination.

Just tested that with username / password given as variables from the internal password store but that should also be possible more secure by using a key-file.
Please note that the ssh tunnel won't be closed automatically if the ASG-RD session is closed.
connection properties vnc:
[Image: attachment.php?aid=3721]

connection properties vnc pre start app:
[Image: attachment.php?aid=3722]

external app definition:
[Image: attachment.php?aid=3723]

putty tunnel config:
[Image: attachment.php?aid=3724]
Reply
#5
CIENL Wrote:Hi Michael

I now know what the problem was, the setting in the putty configuration was the issue!
Loaded the wrong configuration

So thanks for helping me out.


Michael Scholz Wrote:Thanks in advance I will let you know


CIENL Wrote:Hi There
I was wondering if ASG remote desktop supports VNC over a SSH connection?
thanks in advance

André

Hi,
yes, by creating an external app with putty to build an ssh tunnel to the destination host. Then use that tunnel as prestart app for the VNC connection.
For example on the destination host you have the ssh server running and you create a VNC session that hears on port 5901. On the client you create a "tunnel session" with putty that tunnels localhost Port 5901 to destination 5901 over ssh.  That tunnel-session could be used as an external app definition.
The you create an VNC connection with destination "localhost:5901" so VNC will be routet through the ssh tunnel to the destination.

Just tested that with username / password given as variables from the internal password store but that should also be possible more secure by using a key-file.
Please note that the ssh tunnel won't be closed automatically if the ASG-RD session is closed.
connection properties vnc:
[Image: attachment.php?aid=3721]

connection properties vnc pre start app:
[Image: attachment.php?aid=3722]

external app definition:
[Image: attachment.php?aid=3723]

putty tunnel config:
[Image: attachment.php?aid=3724]
Reply




Users browsing this thread: 1 Guest(s)