Remote shell with Win 2000

Thread Tools Search this Thread
Special Forums Cybersecurity Remote shell with Win 2000
# 1  
Old 07-18-2001
Remote shell with Win 2000

I need to use the RSH command to run a shell script on my Unix box from Win 2000. I'm using the etc/hosts.equiv file for configuring Unix. In it I have the hostname and username as required. As a test, I enter the following on the Win 2000 dos command: rsh servername -l username df -k.

The result:
servername: permission denied
rsh: can't establish connection

I can successfully ping and finger the Unix machine from Win 2000. What other configuration steps are required for either Unix or the Win 2000 machines to allow use of RSH?
# 2  
Old 07-18-2001
I recommend that you use Kerberos V5 is the W2K environment and then Kerberize your rsh environment on UNIX OR:

Run SSH client on W2K and SSHD services on UNIX.

Normally, without these security extras, I disable r-commands.

Perhaps someone else has a better answer to your question ?
# 3  
Old 07-20-2001
Does the login name you are trying to use have a password? If so, remove the password and try again.
# 4  
Old 07-20-2001
Originally posted by ngagne
Does the login name you are trying to use have a password? If so, remove the password and try again.
If he is getting a "Can't establish connection" message then removing the password will not do anything to help.

Sounds like the rsh daemon is not running on the unix machine, or access is being blocked by firewall or other security method (such as tcp wrappers). Make sure the daemon is running properly, and then post again if you need more help.
# 5  
Old 07-20-2001
On my Windows 2k machine when I rsh to a UNIX system using a user name that has a password, I get the can't establish connection error message.

Permission denied may mean that the user he is trying to rsh in as does not exist or does not have appropriate permissions.
# 6  
Old 07-20-2001
Hi ebergh,

To check that the rsh daemon is running try telnetting to port 514 on the unix machine.

If the rsh daemon is running then checking the log files should give you an idea what the problem is, the /var/log/messages files is probably the first log you want to check.

Andy Smilie

# 7  
Old 07-26-2001
Follow up

Thank you to all those who replied to my question. Below is a summary of my findings when incorporating RSH. Perhaps this might help others.....

RSH [options] host [command] (sample test command used = rsh myserver -l username df -k)

-The log on "user" must have a valid user account on the Windows machine.

- The log on "user" must have a valid user account on the Unix machine. The user's log on name on both the Unix and Windows machine must be identical.

-On the Unix machine, the etc/hosts.equiv file must contain both the sending machine's fully qualified hostname (DNS) and the "user" name. Use the man rsh command in unix for details.

-If the RSH command is used in a batch file invoked by a Windows Service, the Service requires the "Log On As" name to be the same user name listed in the etc/hosts.equiv file.

-The Windows machine must have a registered name in the local DNS.

-While not recommended, if the local Windows machine is not registered in DNS, as might be the case for temporary test servers in development environments, you can override by putting the Windows machine's IP address and fully qualified server name in the Unix machine's etc/inet/hosts file (i.e. loghost).

Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Execute a shell script in UNIX m/c from win 7 using ksh

I need to run a shell script on unix machine from windows 7. I used the "RSH" command in win XP successfully for this, But on win 7 it is not working. Can any body tell me how to run RSH on win 7 or any other command for similar use. I use the command as below rsh <unix m/c> -l <username>... (1 Reply)
Discussion started by: arup1980
1 Replies

2. Windows & DOS: Issues & Discussions

shell and vImproved for win env

i have pleasure in using shell scripts and vi editor. VI Improved on Linux is also good. Is there a way that allows using shell as command interpretor and VIm as editor to work on windows? (not vi.exe) any help....... (1 Reply)
Discussion started by: paresh n doshi
1 Replies

3. UNIX for Dummies Questions & Answers

Remote access from Windows 2000 into Solaris 8

All, I am looking for the easiest solution that will let me remote access from a Windows 2000 client into a Solaris 8 server. Any suggestions? Thanks Kevin (3 Replies)
Discussion started by: Kevin1166
3 Replies

4. Programming

A C++ programing Shell on Win

Hello I need to translade the power of unix command shell (grep, sed, awk, wc, etc..) to windows. In my work every day I administrate 15 unix server ans 18 windows server, and I have the problem the absolutly limitation of windows shell. Im a system administrator but I know programming. I... (2 Replies)
Discussion started by: dalmus
2 Replies

5. UNIX for Dummies Questions & Answers

Freebsd and win 2000 working 2gether?

Hi Brothers, Please, I've just purchased a new PC and I would like to have both win 2000 and freebsd in the same hard drive, ( 40GB and 128Mb ) can you please help how to set up my new hard drive , please! Thank you..... aka Polymorphous (2 Replies)
Discussion started by: Polymorphous
2 Replies

6. UNIX for Dummies Questions & Answers

Using Samba to join a win 2000 Domain

I am trying to set samba up to join my windows 2000 domain and I am having troubles If anyone if familiar with this help would be greatly appreciated I issue the following command # ./smbpasswd -j DOMAIN -r DOMAINCONTROLER And the following gets returned load_client_codepage: filename... (4 Replies)
Discussion started by: gennaro
4 Replies

7. Windows & DOS: Issues & Discussions

win 2000

Dear user sorry if the subject is not for that fourm .. but I get mad .. I wana solve that problem.. I started my new semster .. and last semster.. and there I use the net under a very huge list of restriction .. no msn massenger .. no yahoo massenger .. no underground site .. no fourms (I am ... (2 Replies)
Discussion started by: RuDe_BuT_CoOoL
2 Replies

8. Programming

ftp a file from remote pc of win 2000

Hello. I am programming in C on HP-UNIX system,i want ftp a file from remote pc which is window 2000 system,i donot how config my HP-UNIX and pc, i donot how program in C or in shell. Thank you for help. (3 Replies)
Discussion started by: bdyjm
3 Replies
Login or Register to Ask a Question