4

Are there any portable SSH servers for windows? I need a really basic executable + config file I can just drop on machines and run as needed. TinySSH seems promising, but they don't have any windows builds (yet?).

Most of the software out there comes with some bloated installer that makes a service and then needs to run a GUI to configure everything. If it can be installed with a few commands / batch file that would be OK as well.

toster-cx
  • 159
  • 1
  • 1
  • 5

1 Answers1

7

openssh is finally available for windows, since the MS guys did some useful work.

Jakuje
  • 9,715
  • 2
  • 42
  • 45
  • That looks a bit troublesome to make "portable". I might overwrite some keys on the target machine if I run with the default settings, It seems I need to install it as a service too. Ideally I'd like to get it running without admin privileges. I'll accept the answer if nothing else comes along tho. – toster-cx Dec 19 '15 at 13:39
  • yes, there are multiple definitions of "portable". But you need always some privileges to to bind privileged ports. Also you can modify `openssh` to use the keys in different then default locations as so the configs. – Jakuje Dec 19 '15 at 13:43
  • Also, if a software isn't designed to run as a service, you need someone to *actually log in and run it*... – Massimo Dec 19 '15 at 14:10
  • Turns out it looks for the key in the local dir by default and it can be run without installing as a service. Exactly what I'm looking for :) – toster-cx Dec 19 '15 at 18:54
  • @toster-cx Which executable do you run to start the SSH server in portable mode? – CJ7 Aug 12 '16 at 02:25
  • You still need admin rights to open the firewall so it's not truly portable. – CJ7 Aug 12 '16 at 04:57
  • @CJ7 It is not portable in the way that you can run in without admin rights, but portable in the way it works on Linux, BSD and now finally under Windows. – Jakuje Aug 12 '16 at 07:01
  • @toster-cx , did you need to run the 'powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1' installation script? – Sopalajo de Arrierez Jun 17 '19 at 12:28
  • @SopalajodeArrierez no, just ran sshd. Looks like it isn't looking in the local dir by default anymore. You can still tell it where to look for the config with the `-f` param. Generate it a new key and `%cd%\sshd.exe -f sshd_config_default -h id_rsa` – toster-cx Jun 17 '19 at 20:51