Warn if ssh password authentication is enabled #12
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In addition to #10
There are reasonable ways to see if the current running ssh supports password authentication (requires shelling out).
If it's on then to suggest the updates to the
sshd_config
(including turning off at least three keys - something to do with Password, Challenge, and PAM but I don't recall exactly off the top of my head).We should be able to create a script that makes the appropriate change and then ask the user to run it with elevated privileges (again, probably just shelling out to
sudo ${THIS_NODE_PATH} fix-ssh.js ${VALUE_IF_NEEDED}
.This should also call
ssh-keygen
(or better yet, figure out how to replicate it in node - probably very similar to PEMs, just a different comment header and maybe a different style of base64 encoding, IIRC).What this might look like:
We want to make both the accessible device and the client device as easy as possible.
We don't currently have an api for fetching public keys, but it will be trivial to add one (we just inspect the http traffic for a special
/_api/ssh@telebit.io/id_rsa.pub
resource before proxying to 3000 or loading the static server)