What is PyserSSH
PyserSSH is a library for remote control your code with ssh client. The aim is to provide a scriptable SSH server which can be made to behave like any SSH-enabled device.
This project is part from damp11113-library
This Server use port 2222 for default port
Cursor scroll in progress
This current version the Cursor scroll is in development! it very ugly! if you use right now.
To try Cursor scroll you can enable by disable_scroll_with_arrow=False
in Server()
(not recommend to enable on this version it very ugly!).
Install
Install from pypi
Install from githubQuick Example
This example you can connect with ssh admin@localhost -p 2222
and press enter on login
If you input hello
the response is world
Demo
https://github.com/damp11113/PyserSSH/assets/64675096/49bef3e2-3b15-4b64-b88e-3ca84a955de7
Need to changing
For use in product please generate new private key! If you still use this demo private key maybe your product getting hacked! up to 90%. Please don't use this demo private key for real product.
For run this demo you can use this command
then But if no damp11113-library you need to install damp11113-library for run this demo by choosey
or yes
in lowercase or uppercase
For exit demo you can use ctrl+c
or use shutdown now
in PyserSSH shell (not in real terminal)
I intend to leaked private key because that key i generated new. I recommend to generate new key if you want to use on your host because that key is for demo only. why i talk about this? because when i push private key into this repo in next 5 min++ i getting new email from GitGuardian. in that email say " GitGuardian has detected the following RSA Private Key exposed within your GitHub account" i dont knows what is GitGuardian and i not install this app into my account.