About This Program
This program is designed to allow relative input in an RDP (VNC) session by wrapping an existing remote desktop client window with another window and sending the client's input information using an SSH session. Currently, only sessions from a Windows machine to a Windows or Linux machine are supported.
install
Server
Debian / Ubuntu
sudo apt install xdotool golang-go
go install github.com/TKMAX777/RemoteRelativeInput/cmd/RelativeInputServer@latest
Windows
- The Go and OpenSSH Server must be installed before installation.
- Run the following commands on CMD.
go install github.com/TKMAX777/RemoteRelativeInput/cmd/RelativeInputServer@latest
go install github.com/TKMAX777/RemoteRelativeInput/cmd/RelativeInputWorker@latest
☆ Windows requires a separate worker program to send messages to the user session.
Client
- The Go and OpenSSH Client must be installed before installation.
- Run the following commands on CMD.
go install github.com/TKMAX777/RemoteRelativeInput/cmd/RelativeInputClient@latest
Usage
Connect to Windows
- Open Remote Desktop Connection and connect to your server like usual and have it in Maximize Windowed (NOT FULL SCREEN)
- Open cmd and start the worker program on the host machine.
start /d "C:\Users\<HostFolderName>\go\bin" RelativeInputWorker.exe
☆ replace <HostFolderName> with the name of the folder of your account located in C:\Users
- Starts a SSH session from the client machine on cmd.
set CLIENT_NAME=<HostAddress> - Remote Desktop Connection
RelativeInputClient.exe | ssh <HostUsername>@<HostAddress> "C:\Users\<HostFolderName>\go\bin\RelativeInputServer.exe"
☆ replace <HostFolderName> with the name of the folder of your account located in C:\Users
☆ replace <HostUsername> with the Host username
☆ replace <HostAddress> with the IP of your host
☆ It is reported that it does not work properly in PowerShell.
-
Ignore the message box and click on cmd tab, and enter host user password
-
Press Yes in the message box displayed on the host machine.
-
Press OK in the message box displayed on the client machine.
-
Enjoy!
☆ The mouse cursor disappears during relative input mode. If you need the cursor, use the F8 key to switch to absolute input.
☆ To return to relative input mode, select the RDP Input Wrapper window and hit the F8 key again.
Connect to Debian / Ubuntu
set CLIENT_NAME=<hostname> - Remote Desktop Connection
RelativeInputClient.exe | ssh <hostname> /home/<UserName>/go/bin/RelativeInputServer
☆ The mouse cursor disappears during relative input mode. If you need the cursor, use the F8 key to switch to absolute input.
☆ To return to relative input mode, select the RDP Input Wrapper window and hit the F8 key again.
☆ replace <HostFolderName> with the name of the folder of your account located in C:\Users