Skip to content

Instantly share code, notes, and snippets.

@timerring
Created September 4, 2025 06:42
Show Gist options
  • Select an option

  • Save timerring/95583f488f928e142a1c4d406ea571d6 to your computer and use it in GitHub Desktop.

Select an option

Save timerring/95583f488f928e142a1c4d406ea571d6 to your computer and use it in GitHub Desktop.
scp local key to server
# 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