X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=ssh-utils%2Fssh-pubkey.ps1;h=e323496072163c09f2d9f547867fb3c638048fb6;hb=59074b5d9d0a9f03a0f525011a3cbd37428347c4;hp=46838e38c12dccabe7dc326c87265392abf186e1;hpb=17924e670fd56fa31ac6ebee8d8d7ee30b547358;p=webi-installers%2F.git diff --git a/ssh-utils/ssh-pubkey.ps1 b/ssh-utils/ssh-pubkey.ps1 index 46838e3..e323496 100644 --- a/ssh-utils/ssh-pubkey.ps1 +++ b/ssh-utils/ssh-pubkey.ps1 @@ -5,7 +5,7 @@ if (!(Test-Path -Path "$Env:USERPROFILE/.ssh")) { - New-Item -Path "$Env:USERPROFILE/.ssh" -ItemType Directory + New-Item -Path "$Env:USERPROFILE/.ssh" -ItemType Directory -Force #& icacls "$Env:USERPROFILE/.ssh" /inheritance:r #& icacls "$Env:USERPROFILE/.ssh" /grant:r "$Env:USERNAME":"(F)" } @@ -26,7 +26,7 @@ if (!(Test-Path -Path "$Env:USERPROFILE/.ssh/config")) if (!(Test-Path -Path "$Env:USERPROFILE/.ssh/id_rsa")) { - & ssh-keygen -b 2048 -t rsa -f "$Env:USERPROFILE/.ssh/id_rsa" -q -N "" + & ssh-keygen -b 2048 -t rsa -f "$Env:USERPROFILE/.ssh/id_rsa" -q -N """" echo "" }