Saturday, October 28, 2017

another windows ssh server

1- install PyRExecd
c:\python2.7\scripts\pip.exe install pyrexecd

2- follow this to generate a pair of rsa public and private keys
http://www.atechnote.com/2016/10/how-to-login-to-ssh-server-using.html

- then copy it to with the name as authorized_keys
AppData\Roaming\PyRexecd


3- then run from python script
 PyRExecd.pyw -d -L 192.168.56.34


4- on client we can use the private key authenticate against it

$ ssh -i myprivatekey.key 192.168.56.34 -p 2200 -l windowsuser


or we can also build exe from the repo
https://github.com/euske/pyrexecd.git

pip install cx_Freeze
python setup_exe.py build

No comments:

Post a Comment