you frequently give remote assistance to users in very heterogeneous environments
Problem
user-side firewalling makes it impossible to just start up e.g. a vnc server.
Solution
let the user initiate a ssh tunnel from his machine to yours, forwarding his local vnc server port.
Rationale
it is way easier for you to allow for incoming traffic once than it is to do the same on every user's machine.
Implementation
Server
enable your sshd and create a dedicated help user with shell /bin/false
Client
use a shell script to start the vnc server and the ssh tunnel. this is only non-trivial for windows, so I shall outline that below.
Extensions
- use a private/public key pair for ssh authentication
- use a different server user for each supported user
- automatically react on incoming ssh sessions
Appendix: Client on Windows
- Download the tightvnc zip distribution, unzip
- Download plink (the putty ssh command line client) and save it into the vnc folder
- start winvnc.exe
- enter a password (you will use this later when using your vnc client to connect to the user's machines), fix the port to 5900, quit the application
- startup regedit
- add a dword key "AllowLoopback" with value 1 to LOCAL_MACHINE\Software\ORL\WinVNC3
- export LOCAL_MACHINE and CURRENT_USER\Software\ORL to vnc.reg and vnc2.reg in your vnc folder
- close regedit
- create the batch file and zip the whole directory for distribution:
reg import vnc.regwhere helpaccount and helppassword match the local account you created on your server and my.dns.org is your server's hostname.
reg import vnc2.reg
taskkill /F /IM winvnc.exe
start winvnc -run -shareall
plink helpaccount@my.dns.org -pw helppassword -N -R 5900:localhost:5900
after running this script, you should be able use a vnc viewer to connect to localhost on your server and see the client's screen. you will want to set -compress 9 -encoding tight explicitly to tune the connection.
1 comment:
An easier alternative would be to use RHUB http://www.rhubcom.com/ remote assistance, which works even through strong firewalls and lockdown systems. This appliance does not necessitate clients to make changes to their firewall settings for remote access. All the client needs to do is switch on the system and activate the Internet. You have instant control over the remote system to render assistance.
Post a Comment