I have a Windows server 2016 machine that needs to run an file that uses the cli, remotely using SSH.
It is known that logging out of an SSH connection terminates processes that were started by the ssh user. On linux machines, one may use solutions such as
screen, resulting a process not being killed once logging off.
Such solutions won't work on windows machines though, and I'm looking for a way to prevent a process from getting terminated once logged out.
- My client is an Ubuntu machine
- My Windows server 2016 runs OpenSHH, with PowerShell as a default shell
- My program is set to work in daemon mode, and no cmd or powershell windows are left open
Get-Process -Name proc_nameshows the process is indeed running
Get-Processafter SSH logout yields no such process
Things I also tried:
- Running the
- Running a
.psfiles that starts the
.exewith its arguments.
Is there a way to tackles this problem on a windows machine?