Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Change ownership of .ssh #7

Open
OhMyMndy opened this issue Sep 26, 2022 · 0 comments
Open

Change ownership of .ssh #7

OhMyMndy opened this issue Sep 26, 2022 · 0 comments

Comments

@OhMyMndy
Copy link
Owner

if [[ -d ~vscode/.ssh ]]; then
  sudo chown vscode:vscode -R ~vscode/.ssh
  sudo chmod 700 ~vscode/.ssh
  chmod 600 ~vscode/.ssh/config || true
  chmod 600 ~vscode/.ssh/id_* || true
  chmod 644 ~vscode/.ssh/*.pub || true
fi
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant