3 ms·
For reference, the work is done at https://github.com/PowerShell/openssh-portable https://github.com/PowerShell/openssh-portable even though the wiki, issues, e
by kodablah 9y ago
For reference, the work is done at https://github.com/PowerShell/openssh-portable https://github.com/PowerShell/openssh-portable even though the wiki, issues, etc happen there.
I will say, from my limited experience w/ MS's fork, they take a bit of a hacky approach. For instance, I just wanted standalone sshd, but they really want you to run it as a service and install/uninstall with PowerShell scripts [0].
In general though, the open SSH fork seems to support pluggable shells and has decent pty support (it fires up a separate shellhost.exe process per client)
0 - https://github.com/PowerShell/Win32-OpenSSH/issues/909#issuecomment-335313384 https://github.com/PowerShell/Win32-OpenSSH/issues/909#issue...
- nailer 9y agoThis is an interesting perspective. I run sshd on nix through sysvinit or systemd, running it as a Windows service seems expected rather than 'hacky'. If you just ran sshd as an executable it would still be attached to the controlling terminal on a nix box. Likewise sshd is typically deployed via a package manager that calls Bourne shell or bash, posh seems a reasonable equivalent. What would you use instead?
- kodablah 9y agoIt should work both ways. I have run sshd locally w/ an sshd_config and I would expect that I can run it standalone. My project was to do a self-contained ssh-over-tor setup. So I could have an sshd_config like so: Port 5678 HostKey /home/myuser/sometempdir/ssh_host_rsa_key HostKey /home/myuser/sometempdir/ssh_host_dsa_key HostKey /home/myuser/sometempdir/ssh_host_ecdsa_key HostKey /home/myuser/sometempdir/ssh_host_ed25519_key PidFile /home/myuser/sometempdir/sshd.pid UsePam yes And run this: /usr/sbin/sshd -f /home/myuser/sometempdir/sshd_config -E /home/myuser/sometempdir/sshd.log Whether I run this manually, as a service daemon on the part of the OS, etc should not affect the core piece. For my project, I even considered going as far as statically linking Open SSH and Tor, but never completed it.