![]() ![]() > message: subsystem request failed on channel 0. ![]() > following message: The SSH client session has ended with error I get: > The background process reported an error with the Type the PowerShell in the box and click OK button. If I use: # SSH-Sessions -ComputerName $ip -Username $un -Password $pw Press the Windows + R keys together to bring up the Run dialog box. I am able to add an oldschool ssh command like: ssh it asks me for my password and connects successfully, but scripts I add after that don't execute until after I exit the SSH session. # param4: password # TODO: figure out how to hide I have a process that uploads a zip file via SCP/PuTTY, and when completed, my script SSHs in to the server, and from there I need to run a couple Linux commands to unzip the file and run a Docker build/compose. ps1 PowerShell script, running PowerShell 7 on Windows 10. I'm running in to noise trying to find the simplest, most straightforward way to run commands on Linux server after SSH in a. Relaunch the PowerShell console, except this time right-click on the Windows PowerShell shortcut and select Run as administrator as shown in Figure 1-5.
0 Comments
Leave a Reply. |