webssh icon indicating copy to clipboard operation
webssh copied to clipboard

Private key issue in upload

Open ardar06 opened this issue 2 years ago • 2 comments

I tried to change the index.html to not upload .pem file but just dropdown, i put the pem file together with main.py handler.py in webssh folder, but when i select the pem file it will say invalid key. I guest my question is what should be the value or the file path in this value="webssh/key.pem">key<

ardar06 avatar May 31 '23 23:05 ardar06

It is a multipart form.
The value of Private Key actually is the content of this file. If you want to use a private key on your webssh server instead of your local computer, then you will have to change the code in files , including index.html, main.js and handler.py, I guess.

huashengdun avatar Jun 03 '23 08:06 huashengdun

i tried but when i add it and then call the pem file it will have an error bad authentication. i guess have to change code in handler

ardar06 avatar Jun 05 '23 17:06 ardar06