Skip to content

Commit 868e377

Browse files
authored
Merge pull request #25748 from github/repo-sync
repo sync
2 parents 767ba10 + 10cedad commit 868e377

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/authentication/troubleshooting-ssh/error-permission-denied-publickey.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ topics:
1414
- SSH
1515
shortTitle: Permission denied (publickey)
1616
---
17-
## Should the `sudo` command be used with Git?
17+
## Should the `sudo` command or elevated privileges be used with Git?
1818

19-
You should not be using the `sudo` command with Git. If you have a *very good reason* you must use `sudo`, then ensure you are using it with every command (it's probably just better to use `su` to get a shell as root at that point). If you [generate SSH keys](/articles/generating-an-ssh-key) without `sudo` and then try to use a command like `sudo git push`, you won't be using the same keys that you generated.
19+
You should not be using the `sudo` command or elevated privileges, such as administrator permissions, with Git. If you have a *very good reason* you must use `sudo`, then ensure you are using it with every command (it's probably just better to use `su` to get a shell as root at that point). If you [generate SSH keys](/articles/generating-an-ssh-key) without `sudo` and then try to use a command like `sudo git push`, you won't be using the same keys that you generated.
2020

2121
## Check that you are connecting to the correct server
2222

0 commit comments

Comments
 (0)