mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-29 16:54:51 +02:00
user permission fix to include ecdsa and ed25519 (#446)
Co-authored-by: Michael Trigg <mtrigg@crabel.com>
This commit is contained in:
parent
7e53747509
commit
5e5ed64743
@ -10,7 +10,7 @@ if(Test-Path ~\.ssh\config -PathType Leaf)
|
|||||||
Repair-UserSshConfigPermission -FilePath ~\.ssh\config @psBoundParameters
|
Repair-UserSshConfigPermission -FilePath ~\.ssh\config @psBoundParameters
|
||||||
}
|
}
|
||||||
|
|
||||||
Get-ChildItem ~\.ssh\* -Include "id_rsa","id_dsa" -ErrorAction SilentlyContinue | % {
|
Get-ChildItem ~\.ssh\* -Include "id_rsa","id_dsa","id_ecdsa","id_ed25519" -ErrorAction SilentlyContinue | ForEach-Object {
|
||||||
Repair-UserKeyPermission -FilePath $_.FullName @psBoundParameters
|
Repair-UserKeyPermission -FilePath $_.FullName @psBoundParameters
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user