if (!(Test-Path -Path "$Env:USERPROFILE/.ssh"))
{
- New-Item -Path "$Env:USERPROFILE/.ssh" -ItemType Directory
+ New-Item -Path "$Env:USERPROFILE/.ssh" -ItemType Directory -Force | out-null
#& icacls "$Env:USERPROFILE/.ssh" /inheritance:r
#& icacls "$Env:USERPROFILE/.ssh" /grant:r "$Env:USERNAME":"(F)"
}
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 ""
}