A Python-based SSH forced-command gatekeeper for remote callbacks.
Project description
ssh-backchannel
WARNING. This is vibe coded. Review before use.
Sometimes I want to do things on my local machine from a remotes machine I am ssh'd into. ssh-backchannel provides a means to do so - in a moderately secure way. It allows you to run a local command from a remote machine, while asking for confirmation from your local machine.
Architecture
A limited ssh key is created and passed to other machines when you log in. This key can only run a command which asks you for permission before running commands.
Alternatives and prior work
If you are happy with it you could use ssh auth forwarding and just ssh into your machine. This adds a little more security since you must approve each command.
If you just want to write to your clipboard there are tools which use OSC escape codes to send data via your terminal. The only downside is that you need to set up terminal to handle deal with this. I do not like debugging this sort of stuff.
Caveat
This only works if your host can be reached from the remote machine and may involve openning your machine ot the internet or using a VPN / being on the same subnet. Reverse proxying would probably be the easiest fix.
It is assumed that there is only one user who consistently uses a machine.
This only with X11.
Alternatively, you could use reverse proxying in your ssh config.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ssh_backchannel-1.1.3.tar.gz.
File metadata
- Download URL: ssh_backchannel-1.1.3.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c0fe1af6c1f4056be677d7edf91c863cd605f2a492dd6e8020c8ac27d5861d9
|
|
| MD5 |
31af377821de7ccc318989599892da1b
|
|
| BLAKE2b-256 |
d32890f4ba675fa0b3f9cba74d9a567f8c78643f564b76d246d775b3b7c65798
|
File details
Details for the file ssh_backchannel-1.1.3-py3-none-any.whl.
File metadata
- Download URL: ssh_backchannel-1.1.3-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e161faf364bed70ed0baa65e35b0322484fded48dcaf470878e72b90fec3a7ca
|
|
| MD5 |
8923b9d1adaf41d1338fb19b16e8ffb3
|
|
| BLAKE2b-256 |
ed37b440d13fb25e388a6258536ca982e7156b5dd4463b8ad0ab6a84ac8c9d17
|