Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant acceess to ssh with key file and passprotected #106

Open
masterwishx opened this issue Aug 19, 2022 · 5 comments
Open

cant acceess to ssh with key file and passprotected #106

masterwishx opened this issue Aug 19, 2022 · 5 comments

Comments

@masterwishx
Copy link

cant acceess to ssh with key file and passprotected
using in web ssh.mysite.com +Nginx Proxy manager + Authelia

@nirui
Copy link
Owner

nirui commented Aug 20, 2022

Hi,

Sshwifty does not support encrypted private key file, as described in the private key upload page. You need to create an unencrypted key pair specifically to be used in Sshwifty.

@ikidd
Copy link

ikidd commented Jan 2, 2024

Any chance that key could be referenced by path in the sshwifty.conf.json file instead of having to be pasted in as a line-breaked string?

I used awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' id_rsa to get a single line out of the key file, but it's a pretty clunky way to do it.

@nirui
Copy link
Owner

nirui commented Jan 2, 2024

Hi @ikidd, not sure which option you wish to assign to. If it's Meta for a Preset, then you can try file:// (See README.md for detail).

@ikidd
Copy link

ikidd commented Jan 2, 2024

My apologies, I downloaded a bare version of the conf file without the comments in it, just went by the example Presets in it, and missed seeing that as an option. I tried just putting a path in there but that obviously didn't work, but file:// works fine.

Thank you for the pointer.

@nirui
Copy link
Owner

nirui commented Jan 3, 2024

@ikidd Glad that's resolved. I can't really put the same explanation in the example config file because that will make the file format invalid for loading, so :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants