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 want to run a batch script on a Windows XP machine from my Mac 10.6.6. I installed Windows SFU, including Remote Shell Service, which I verified is started on the remote machine (http://screencast.com/t/uYDmpkUwJ4). However, I'm unable to connect from my Mac, repeatedly getting timeouts ...

$ rsh 192.168.199.131 'cd C:\'
192.168.199.131: Operation timed out
$ telnet 192.168.199.131 4444
Trying 192.168.199.131...
Connected to 192.168.199.131.
Escape character is '^]'.

Notice that I'm able to telnet successfully into another service, so it's not a network issue. I created a ~/.rhosts file that consists of ...

192.168.199.131 developer

Any ideas why I can't connect or what else I need to do to troubleshoot this issue? - Dave

share|improve this question

migrated from stackoverflow.com Jul 1 '11 at 1:59

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

2 Answers 2

Do you have to use rsh(1)? It is unauthenticated, unencrypted, provides no message integrity or privacy, and is easily spoofed. Do you really want that for your Windows machine?

I suggest instead running an ssh server on windows; then you can just use ssh(1) and get strong authentication and encryption. And use modern tools.

share|improve this answer

You're able to successfully telnet to port 4444, but rsh usually listens on port 514. Maybe your firewall config is letting 4444 through, but blocking 514?

You might try running Wireshark on the Windows machine, to watch the network traffic while you try to establish an rsh connection.

share|improve this answer

Your Answer

 
discard

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