relative_input

package module
v1.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

README

RemoteRelativeInput

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.

sample

install

Server
Debian / Ubuntu
sudo apt install xdotool golang-go
go install github.com/TKMAX777/RemoteRelativeInput/cmd/RelativeInputServer@latest
Windows
  1. The Go and OpenSSH Server must be installed before installation.
  2. 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
  1. The Go and OpenSSH Client must be installed before installation.
  2. Run the following commands on CMD.
go install github.com/TKMAX777/RemoteRelativeInput/cmd/RelativeInputClient@latest

Usage

Connect to Windows
  1. Open Remote Desktop Connection and connect to your server like usual and have it in Maximize Windowed (NOT FULL SCREEN)
  2. 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

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

  1. Ignore the message box and click on cmd tab, and enter host user password

  2. Press Yes in the message box displayed on the host machine.

  3. Press OK in the message box displayed on the client machine.

  4. 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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

func Debugf(format string, v ...interface{})

func Debugln

func Debugln(v ...interface{})

func Output

func Output(level int, v ...interface{})

func StartClient

func StartClient()

func StartServer

func StartServer()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL