Created
September 4, 2025 06:42
-
-
Save timerring/95583f488f928e142a1c4d406ea571d6 to your computer and use it in GitHub Desktop.
scp local key to server
This file contains hidden or 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
| # private | |
| scp ~/.ssh/id_ed25519 root@ip:/root/.ssh/ | |
| # public | |
| scp ~/.ssh/id_ed25519.pub root@ip:/root/.ssh/ | |
| # permission | |
| chmod 600 ~/.ssh/id_ed25519 | |
| chmod 644 ~/.ssh/id_ed25519.pub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment