Skip to content

Instantly share code, notes, and snippets.

@vshmoylov
Last active August 30, 2023 08:50
Show Gist options
  • Save vshmoylov/5956ba8cb9783dca7101485c666eb682 to your computer and use it in GitHub Desktop.
Save vshmoylov/5956ba8cb9783dca7101485c666eb682 to your computer and use it in GitHub Desktop.
create .ssh directory in linux with proper permissions
#!/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