Solved

"remsh"command giving the error "Connection refused"

Posted on 2008-06-17
5
2,587 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 P.S.
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 P.S. 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
netstat -a in AIX unix 8 53
Sparc Solaris hangs without crash dump & no events from messages 3 93
help pulling data string using Awk 9 83
Linux hostname change 2 89
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 …
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

696 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