Solved

"remsh"command giving the error "Connection refused"

Posted on 2008-06-17
5
2,563 Views
Last Modified: 2013-12-06
Hi,

We are using the "remsh" command  on a UNIX machine.Using this command trying to run a batch file on a windows machine"serv1" .The batch file is stored on a "Netapp" folder.

We are able to run the same command on another windows server "serv2".

The command which we are running is :
remsh serv1 -l rshadmin \\netapp02.\XXX.bat)

getting the error:

rcmd: connect: serv1: Connection refused
tox009:edamgr:/home/edamgr >

I have given  the same access to the account "rshadmin" on both servers.

Regards
Nishakar
0
Comment
Question by:STNoida
  • 2
5 Comments
 
LVL 16

Expert Comment

by:Hanno Schröder
ID: 21811175
could you verify the the rsh (or rshell) service is actually active on that server?
0
 

Author Comment

by:STNoida
ID: 21820326
Yes, I restarted the rshell service on windows server.Now we are getting different error:

tox009:edamgr:/home/edamgr >remsh serv1 -l rshadmin \\netapp02.\XXX.bat)
Logon failure: unknown user name or bad password.

Regards
Nishakar
0
 
LVL 16

Accepted Solution

by:
Hanno Schröder earned 500 total points
ID: 21829012
You should verify if the user "rshadmin" exists on your server and
that he is allowed to run rsh (remsh) commands
Either the file .rhosts should exist in this user's HOME directory (or
whatever the name of this file is on the Windoze box) or in file
/etc/hosts.equiv the entry for your client (your Unix box) with this
user has been set.

You may alos try to connect to the server with
  telnet server 514
to see if the service is active.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now