-
Notifications
You must be signed in to change notification settings - Fork 781
SSHD service is working good if start in PowerShell but not if start as windows service #1676
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
Comments
Note that if I have successfully executed software installers from within For example: if the installer uses Inno Setup, calling it with the option I would hope, other Windows installers have similar options to suppress GUI interaction. A developer can use the Win32 API functions |
I suspect this is not an sshd bug/problem, but may deserve to be highlighted and explained better in the documentation. See also #998. |
Thanks a lot for your response. I solved it by creating a task for sshd in task scheduler and start sshd in PowerShell in hidden mode. Also, we need to stop ssh from windows services. |
Keep in mind that this is a Microsoft product. The whole point of Windows as an operating system product was always to provide an environment where only one single user at a time can use a GUI application. If you want to be able to have multiple users log in remotely, you have to buy the Windows Server operating systems and configure them as a terminal server, which then has licence implications for commercial applications that can be used there. Windows was specifically designed not to be easily fully usable via something like sshd. OpenSSH for Windows mainly exists to help with remote administration via CMD.EXE and PowerShell. I think the right thing to do is to contact the authors of the installers that you want to use to ensure that they eventually offer a non-GUI mode of using their product, similar to what Inno Setup did with |
This sounds like SSHd can be started from the user UI at startup (instead of a service) and then is serviceId 1 and can launch desktop applications? |
You could also try to place (a shortcut to?) sshd into |
Thanks for your response. |
@ggoyal23 You wrote "But if i am using SSHD in powershell then it is working fine. " Edit: The answer is, that it is no more possible with newer versions of OpenSSH. The feature |
Summarized the things in stackoverflow land: https://stackoverflow.com/a/65899949/1037303 |
Please answer the following
"OpenSSH for Windows" version
OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.4
Server OperatingSystem
Windows 10 Enterprise
Client OperatingSystem
Windows 10 Enterprise
What is failing
I am using Ansible Windows and connecting to remote machines using OpenSSH and I have an Admin User account.
If i am opening the sshd service as windows service in remote machine, Ansible master is able to ping but not able to install any softwares in remote machine or perform complex steps
But if i am using SSHD in powershell then it is working fine. So, i am not sure what special permission the user is getting when start the sshd in powershell and how to resolve it.
If anyone has some idea, Inputs are really appreciated.
The text was updated successfully, but these errors were encountered: