Created
June 19, 2023 09:10
-
-
Save Lamby777/8a00ae40fb3054970cc82ee8e2c9da7f to your computer and use it in GitHub Desktop.
This file contains 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
if ($args.Length -lt 1) { | |
Write-Host "kid wtf" | |
return | |
} | |
$ipAddress = $args[0] | |
$command = "type $env:USERPROFILE\.ssh\id_rsa.pub | ssh $ipAddress `"cat >> .ssh/authorized_keys`"" | |
Invoke-Expression -Command $command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Definitely not created by Chat Jippity