-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a way to confirm the fix folder permissions for programdata\ssh installation prompt to allow for a silent installation #1916
Comments
I've just tried the new version, but PS C:\Program Files\OpenSSH> .\install-sshd.ps1 -Confirm:$false
C:\Program Files\OpenSSH\install-sshd.ps1 : Cannot bind parameter because parameter 'confirm' is specified more than once. To provide multiple values to parameters that can accept multiple values, use the array
syntax. For example, "-parameter value1,value2,value3".
At line:1 char:1
+ .\install-sshd.ps1 -Confirm:$false
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [install-sshd.ps1], ParameterBindingException
+ FullyQualifiedErrorId : ParameterAlreadyBound,install-sshd.ps1
PS C:\Program Files\OpenSSH> .\sshd.exe --version
unknown option -- -
OpenSSH_for_Windows_8.9p1, LibreSSL 3.4.3
usage: sshd [-46DdeiqTt] [-C connection_spec] [-c host_cert_file]
[-E log_file] [-f config_file] [-g login_grace_time]
[-h host_key_file] [-o option] [-p port] [-u len]
Can you please re-open this issue? |
@rgl - I think you are trying on the windows powershell. Can you try it on powershell 7+ |
I can, but older Windows versions (e.g. Windows 2019) do not ship PowerShell 7 out-of-the-box. So I would say these scripts should target Windows PowerShell 5.1. |
@bagajjal, I confirm that it works correctly with PowerShell 7.2.2. |
Thanks @rgl. We will fix this for windows PowerShell. |
I just spent half a day searching for whatever broke our unattended windows (2019) image builds... :( Any ETA for a fix? Should I pin our scripts to the previous version or is this a matter of hours? |
@max06 IMHO, if you are sad after something breaks, always pin your dependencies. And upgrade at your own pace, when you can afford the time. |
You're right. Full ack. |
Any idea about when this will be released? |
This was released with v8.9.1.0p1-Beta - https://github.com/PowerShell/Win32-OpenSSH/releases/tag/v8.9.1.0p1-Beta |
@tgauth, no, it wasn't. This issue was reopened after that release. |
Ah, yes - sorry about that, the issue was reopened to fix for Windows PowerShell. I don't know the date for the next release yet. |
After PowerShell/openssh-portable#549,
install-ssh.ps1
now prompts the user to confirm the fix the programdata\ssh folder permissions but that does not allow for a silent installation.Please provide a way to call
install-sshd.ps1
with a-Confirm:$false
parameter, just like we can do withFixHostFilePermissions.ps1 -Confirm:$false
.The text was updated successfully, but these errors were encountered: