"SSH server" in Windows?
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.
Related videos on Youtube
casterInGT
Updated on September 17, 2022Comments
-
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 about 14 yearsSo, 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 about 14 years@SamB: Yes, that's correct. I'm using Ubuntu on my main machine.
-
-
Admin about 14 yearsAgreed, 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 about 14 yearsBut PsExec only runs on Windows systems, right?
-
SamB about 14 yearsWell, 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 about 14 yearsAlso, 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 about 14 yearsThis looks as a nice solution but, the forum is down (cannot post) and it looks that it doesn't allow domain logins.
-
sorin almost 14 yearsRemark, this solution does not support key authentication.
-
sorin almost 14 yearsAlso, 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 almost 14 yearsRemark, this is a slow SSH server.
-
John La Rooy almost 12 yearsThis was my first thought, then I saw they are building the new string in
b
-
Evgeniy Berezovsky over 11 yearsI 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 abash
shell, so I figured, if I want a really usable ssh login into my windows box, I'll do it usingcygwin
, 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 over 4 years@SamB Yes. It's actually used to run commands with (super-)elevated privileges, including as the SYSTEM account (not only Administrator).