Skip to content

Instantly share code, notes, and snippets.

@mcx808
Created November 6, 2023 16:09
Show Gist options
  • Save mcx808/502ae948bfe7061bacaebe8af9883146 to your computer and use it in GitHub Desktop.
Save mcx808/502ae948bfe7061bacaebe8af9883146 to your computer and use it in GitHub Desktop.
Add github user keys to authorized_keys file
if(-not(Test-Path ~/.ssh)) {New-Item ~/.ssh -ItemType Directory}
(Invoke-WebRequest https://github.com/mcx808.keys).Content | Out-File ~/.ssh/authorized_keys -Append
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment