Created
May 2, 2023 03:27
-
-
Save GuyPaddock/bd80c42f7a471c07963424aafe5eff3d to your computer and use it in GitHub Desktop.
Mount encrypted Synology volumes using key files over SSH
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NOTE: Something I did not realize until months after my initial proof of concept is that Synology NASes record all commands that are run from CLI, so if a password is included in any command it will appear in a log. This means that sending the encryption key as part of a command being run via SSH is less secure than storing the passwords in Key Manage since they’ll be saved in clear-text.
A better approach would be to echo the password over standard in to the SSH process, have the remote command write the password to a file, and then send a command to decrypt the file, so that the password never appears in the command line that gets logged.