Closed nickdesaulniers closed 8 years ago
paramikojs has support for keys; I removed it so I wouldn't have to try to port everything at once. It should be fairly simple to add back in.
Nice, can it generate keys?
nope.
Should we use passphrase-encrypted keys?
It would be good to assume the keys may or may not have passphrases.
But if we're creating our own keys?
Oh, let's worry about supporting keys made elsewhere first, before trying to tackle key gen. I don't use passphrases but I'm not sure if that's considered bad practice.
I have disobeyed you. Keygen is working. (no passphrase) Now for a way to export the public key. Any ideas? (I have a couple bad ones/ones that won't work.)
I am not a sysadmin, but what I do is allow for password authentication while my server is disconnected from the WAN and is only available locally. I then SCP my keys up to the box. Then I disable password authentication and verify that publickey auth is working. Then I connect my box back to the WAN. Is there a better way? I hope so, but this is something that you set up once and forget. I've only had to do it maybe 4 times in 4 years.
Support for keys added.
I don't use passwords at all for my ssh hosts, I would consider it bad practice. We should add the ability to support reading a key from the sd card or indexeddb or generate one. Maybe porting ssh-keygen with emscripten would help.