Solved

"remsh"command giving the error "Connection refused"

Posted on 2008-06-17
5
2,597 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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.:
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.

690 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