Skip to content

mbecker12/sshi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sshi

SSHI should help interfacing

Broadcast the most important keys to xdotool on a raspberry pi (or other linux computers).

The project was created because remote desktops were too slow and causing trouble, since there was a monitor and a mouse available, but no keyboard, a workaround to send keystrokes was necessary.

We plan to extend the project for mouse support and more sufficient keyboard inputs.

Install

Host

tested on python 3.7 and 3.8

pip install pexpect
pip install pynput

... or use

pip install -r requirements.txt
Guest

login with ssh

sudo apt-get install xdotool libxdo-dev
nano .bashrc

add line

export DISPLAY=:0

activate changes

source .bashrc

Note: For zsh, replace .bashrc with .zshrc

Usage

python ssh_interface.py

Options:

  -h, --help            show this help message and exit
  -p PORT, --port PORT  Set port specification. Will be parsed as
                        192.168.1.<port>
  -n NAME, --name NAME  Username of the Raspberry Pi
  -w PW, --pw PW        Password of the Raspberry Pi User

About

SSHI should help interfacing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages