Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm having a difficult time coming up with a solution to extend a framework that was designed for *nix machines over to windows. The framework currently runs from one *nix server and ssh's out to other *nix servers and performs a bunch of different commands like checking log files, syncing files from source control, submitting logs back to source control, etc. The big piece I'm stuck on is how to connect to the remote windows machines and access the command line. The connection can be coming from another Windows machine also, it doesn't have to start from a unix machine, it can go from windows to windows instead of unix to windows.

Here's an example of how commands are currently ran on unix systems. Something like this is in a loop that goes through a list of server names. I need to get something like this to run on windows machines.

ssh ${user}@${server} "cd /app/app_name/logs; <export source control params>; <submit logs to source control>" >> Log.txt

Also, I would prefer not to use a 3rd party tool (my budget is about $0). I've checked out PsExec and a couple others but it looks like you need admin access or have to pass users/pass in plain text.

share|improve this question
    
By design, a non-administrative user can't normally run code on a remote machine. You might have to build your own solution. Is there a specific context the code needs to run in? Are the commands to be run the same every time? –  Harry Johnston Sep 6 '11 at 4:40
add comment

migrated from stackoverflow.com Sep 6 '11 at 8:31

This question came from our site for professional and enthusiast programmers.

4 Answers

You could try psexec which gives you a remote shell over the file share service (or however this is called). There is also winexe if you want to use Linux as client.

share|improve this answer
add comment

Try tunnellier from Bitvise. That is an ssh client. There's also an ssh server for connecting to a windows machine. The two enable you to make very secure connections along with more advanced things like a web proxy or port tunneling.

share|improve this answer
    
Unfortunately the SSH server isn't freeware. –  Harry Johnston Sep 6 '11 at 4:34
add comment

Install OpenSSH port for Windows - it's free and provides both client and server.

share|improve this answer
    
There are security issues, though - because it uses Cygwin, it isn't multiple-user safe. (Unless my information is out of date?) –  Harry Johnston Sep 6 '11 at 7:46
add comment

PuTTY is also a popular Windows SSH Client.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.