![]() It includes a graphical client and command line client. ![]() Since Server 2016 is still in common use, it seems like this scenario would be relatively common, but I'm having trouble finding good documentation on how to implement it.īitvise is really excellent if you are willing to use a commercial solution. Any guide out there simply shows you how to access "Optional Windows Features" to turn SSH on. This would be the ideal solution, but since 1803 has native OpenSSH it seems that it's either impossible or damn hard to find binary builds of OpenSSH for Windows at all. I'm not familiar enough with building Unix apps on Windows to do this.įind a binary compiled recent OpenSSH for Windows. It also tends to mess around with file permissions and local accounts in ways that might cause problems in our domain environment.Ĭompiling OpenSSH from source. It feels way too heavyweight for a server installation. Since it's a GUI app, it's not well suited for automation tasks and probably wouldn't even work properly if running in the context of a service account.Ĭygwin. Since Server 2016 (build 1607) doesn't have the SSH command as an installable feature, I'm trying to figure out how to best accomplish this. The natural course of action (if native ssh existed, as it does on Windows Server 2019) would be to simply add the SSH command to the PowerShell script: ssh -i privatekeyfile.pem /path/to/command ![]() I want to add a command to that script that will SSH to a remote server and execute a command, and wait for it to complete, and then continue the script. Basically right now, a scheduled task runs that executes a PowerShell script. I'm working with a Windows Server 2016 box, and we now have a use case where we'd like to run an SSH command on a remote server as part of a task workflow. With all the awesomeness of OpenSSH for Windows being included as a native Windows feature in 1803 and later, it's become harder to find any relevant information on OpenSSH on older versions of Windows Server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |