Solved

"remsh"command giving the error "Connection refused"

Posted on 2008-06-17
5
2,549 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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.

706 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

20 Experts available now in Live!

Get 1:1 Help Now