"SSH server" in Windows?

166

Solution 1

One approach, of course, is to actually run an SSH server on the windows box. But a more Windows-focused solution is a tool from the SysInternals folks (now part of Microsoft) called PsExec, which is designed to do exactly what you want.

Solution 2

You need a SSH server running on windows. like http://www.kpym.com/2/kpym/index.htm

There isnt any installed by default, And I have been using this for some time. it is good

Solution 3

You can use the freesshd server from fresshd.com. It does work great, you will set-up the server in seconds :)

Solution 4

I've had a lot of good experience installing cygwin and its sshd port. There are wrappers which will turn it into a windows service, and you get the bash shell as an extra.

http://chinese-watercolor.com/LRP/printsrv/cygwin-sshd.html is a decent starting point, you can evaluate if it is what you want.

Solution 5

As of 2015-06-02, Microsoft has announced upcoming support for SSH.

Share:
166

Related videos on Youtube

casterInGT
Author by

casterInGT

Updated on September 17, 2022

Comments

  • casterInGT
    casterInGT almost 2 years

    I want to write a function, replacing T by space.

       b=""
       xs=list("fghtThjchk")
       for x in xs:
           if x=="T" or "t":
               x==" "
               b=b+x
    

    I can do it with .replace, but I still want to know can I use list to do it.

    • SamB
      SamB about 14 years
      So, am I correct in reading between the lines that this "other computer" is not running windows, and that this is the reason you want/need to execute these commands remotely?
    • Benjamin Oakes
      Benjamin Oakes about 14 years
      @SamB: Yes, that's correct. I'm using Ubuntu on my main machine.
  • Admin
    Admin about 14 years
    Agreed, cygwin + ssh is nice and easy, and you get a conveniently unix-like shell and environment to run your programs from. If you like ssh, you probably already know Unix.
  • SamB
    SamB about 14 years
    But PsExec only runs on Windows systems, right?
  • SamB
    SamB about 14 years
    Well, it's all fine and dandy to say RTFM, but that would be easier if we could find said manual... any tips, such as the name of page and maybe an MSDN/Technet link -- especially now that it seems like MS may have finally learned the value of an URL?
  • SamB
    SamB about 14 years
    Also, isn't there some registry change needed to get it let you have more than one logged-in session at the same time on anything less than Server? I doubt MS would want to make the docs for that easy to find, assuming that there are any docs for that...
  • sorin
    sorin about 14 years
    This looks as a nice solution but, the forum is down (cannot post) and it looks that it doesn't allow domain logins.
  • sorin
    sorin almost 14 years
    Remark, this solution does not support key authentication.
  • sorin
    sorin almost 14 years
    Also, this is only 'free', meaning that every time you do a SSH it will display you a login message asking you to register(buy) it, you have to wait 5+ seconds to be able to continue.
  • sorin
    sorin almost 14 years
    Remark, this is a slow SSH server.
  • John La Rooy
    John La Rooy almost 12 years
    This was my first thought, then I saw they are building the new string in b
  • Evgeniy Berezovsky
    Evgeniy Berezovsky over 11 years
    I tried freesshd - what you get is a login into a windows shell (cmd.exe?) with a fixed width that does not adapt to your terminal client, i.e. you get annoying line breaks mid-screen. Also, it's nowhere near a bash shell, so I figured, if I want a really usable ssh login into my windows box, I'll do it using cygwin, which I've done before. Granted, cygwin is a bit like an os inside the os, but it does make windows usable for a (unix) cmd line user.
  • Matthieu
    Matthieu over 4 years
    @SamB Yes. It's actually used to run commands with (super-)elevated privileges, including as the SYSTEM account (not only Administrator).