Last active
August 30, 2023 08:50
-
-
Save vshmoylov/5956ba8cb9783dca7101485c666eb682 to your computer and use it in GitHub Desktop.
create .ssh directory in linux with proper permissions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
mkdir -p -m 700 ~/.ssh; (umask 0177; touch ~/.ssh/authorized_keys) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment