Sponsored Content
Operating Systems AIX RSH command is giving error (connection refused) Post 302412014 by juredd1 on Saturday 10th of April 2010 11:00:10 PM
Old 04-11-2010
I believe the format of the entries in the .rhosts file should be
Servername LoginID

Make sure that you can resolv the hostname both ways. Meaning from "Host A" you can for example ping "Host B" and it returns what you expect and then ping from "Host B" to "Host A". The best I can remember it must be able to do a reverse lookup. So "Host A" info should be in /etc/hosts on "Host B" and "Host B" should be in the /etc/hosts file on "Host A". If you don't I would recomment having the shortname in the /etc/hosts file as well, for example:
10.1.1.1 testbox.foobar.com testbox

Not sure if you have a firewall between the two hosts, if so you might verify that rsh traffice is allowed between the hosts. Port 514 I think but could be wrong on that one.
 

10 More Discussions You Might Find Interesting

1. SCO

telnet connection refused

I installed Openserver 5.0.7 and I cannot telnet to the localhost and I can't telnet from my old SCO 3.2.42 to the new SCO machine but I can ping the new machine and it will telnet to the old machine. (2 Replies)
Discussion started by: printrick
2 Replies

2. Shell Programming and Scripting

rsh problem connection refused

I'm trying to use rsh command to read a variable on a remote machine. I can rlogin with no problem. If I rsh HOST I also get connection like with rlogin. There is no need for passwords. But when I rsh HOST COMMAND it waits 30 seconds then gives me a connection refused error message. Any ideas? ... (4 Replies)
Discussion started by: Mace
4 Replies

3. IP Networking

Connection refused

Hi there, Anything will help. I have running server on computer and want to connect from some clients. Server: memset(&hints, 0, sizeof(hints)); hints.ai_family = domain; hints.ai_socktype = SOCK_STREAM; error = getaddrinfo("localhost", "8300", &hints, &res0); if (error) { ... (1 Reply)
Discussion started by: Dudu1984
1 Replies

4. Solaris

rsh is not working ,error :connection refused

rsh is not working command:rsh targethost -l username command Error:Connection refused I checked on the server rshd was not working. Tried to start by /usr/sbin/in.rshd start # ./in.rshd start rshd: getpeername: Socket operation on non-socket Please help (1 Reply)
Discussion started by: aneita
1 Replies

5. Solaris

Solaris 10 ftp connection problem (connection refused, connection timed out)

Hi everyone, I am hoping anyone of you could help me in this weird problem we have in 1 of our Solaris 10 servers. Lately, we have been having some ftp problems in this server. Though it can ping any server within the network, it seems that it can only ftp to a select few. For most servers, the... (4 Replies)
Discussion started by: labdakos
4 Replies

6. UNIX and Linux Applications

PSQLException: Connection refused

I dont' what happened with my servers (test servers only) but I just noticed that suddenly I cannot up the domain anymore (Sun Java System Application Server 9.1_01). a. server.log org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the... (1 Reply)
Discussion started by: lhareigh890
1 Replies

7. Shell Programming and Scripting

rsh connection using embedded command

Hello, I am doing an rsh connection to server2. I want to perform several command on server2. I.E: i=1 rsh server1 -l username "z=$i;`script.ksh`" (1)Is this the right way to give z value to be used on server2? (2) Is this the right way to run a script on server2? (1 Reply)
Discussion started by: LiorAmitai
1 Replies

8. UNIX for Advanced & Expert Users

ftp connection refused

Hi- While trying ftp from AIX to Windows im getting below error. Can anyone share ur views on this topic. root@AB101# ftp -n 10.192.168.68 ftp: connect: A remote host refused an attempted connect operation. ftp> Thanks. (3 Replies)
Discussion started by: yanis
3 Replies

9. Linux

Telnet Connection refused error

Hi all, i got stuck with telnet issue, I am not able to telnet on 4001 port it show connection refused. with default port it will open # telnet 127.0.0.1 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Fedora release 14 (Laughlin) Kernel 2.6.35.6-45.fc14.i686 on... (1 Reply)
Discussion started by: muzaffar.k
1 Replies

10. UNIX for Dummies Questions & Answers

SSHd is running, but cant connect "Network error: Connection refused"

Hi, i checked on rhel VPS is running sshd (service ssh status) But i cant connect via putty: "Network error: Connection refused" Please which log file in my centos rhel linux i need to watch or what are steps to do to discover cause? (3 Replies)
Discussion started by: postcd
3 Replies
slave(3erl)						     Erlang Module Definition						       slave(3erl)

NAME
slave - Functions to Starting and Controlling Slave Nodes DESCRIPTION
This module provides functions for starting Erlang slave nodes. All slave nodes which are started by a master will terminate automatically when the master terminates. All TTY output produced at the slave will be sent back to the master node. File I/O is done via the master. Slave nodes on other hosts than the current one are started with the program rsh . The user must be allowed to rsh to the remote hosts without being prompted for a password. This can be arranged in a number of ways (refer to the rsh documentation for details). A slave node started on the same host as the master inherits certain environment values from the master, such as the current directory and the environ- ment variables. For what can be assumed about the environment when a slave is started on another host, read the documentation for the rsh program. An alternative to the rsh program can be specified on the command line to erl as follows: -rsh Program . The slave node should use the same file system at the master. At least, Erlang/OTP should be installed in the same place on both computers and the same version of Erlang should be used. Currently, a node running on Windows NT can only start slave nodes on the host on which it is running. The master node must be alive. EXPORTS
start(Host) -> start(Host, Name) -> start(Host, Name, Args) -> {ok, Node} | {error, Reason} Types Host = Name = atom() Args = string() Node = node() Reason = timeout | no_rsh | {already_running, Node} Starts a slave node on the host Host . Host names need not necessarily be specified as fully qualified names; short names can also be used. This is the same condition that applies to names of distributed Erlang nodes. The name of the started node will be Name@Host . If no name is provided, the name will be the same as the node which executes the call (with the exception of the host name part of the node name). The slave node resets its user process so that all terminal I/O which is produced at the slave is automatically relayed to the mas- ter. Also, the file process will be relayed to the master. The Args argument is used to set erl command line arguments. If provided, it is passed to the new node and can be used for a variety of purposes. See erl(1) As an example, suppose that we want to start a slave node at host H with the node name Name@H , and we also want the slave node to have the following properties: * directory Dir should be added to the code path; * the Mnesia directory should be set to M ; * the unix DISPLAY environment variable should be set to the display of the master node. The following code is executed to achieve this: E = " -env DISPLAY " ++ net_adm:localhost() ++ ":0 ", Arg = "-mnesia_dir " ++ M ++ " -pa " ++ Dir ++ E, slave:start(H, Name, Arg). If successful, the function returns {ok, Node} , where Node is the name of the new node. Otherwise it returns {error, Reason} , where Reason can be one of: timeout : The master node failed to get in contact with the slave node. This can happen in a number of circumstances: * Erlang/OTP is not installed on the remote host * the file system on the other host has a different structure to the the master * the Erlang nodes have different cookies. no_rsh : There is no rsh program on the computer. {already_running, Node} : A node with the name Name@Host already exists. start_link(Host) -> start_link(Host, Name) -> start_link(Host, Name, Args) -> {ok, Node} | {error, Reason} Types Host = Name = atom() Args = string() Node = node() Reason = timeout | no_rsh | {already_running, Node} Starts a slave node in the same way as start/1,2,3 , except that the slave node is linked to the currently executing process. If that process terminates, the slave node also terminates. See start/1,2,3 for a description of arguments and return values. stop(Node) -> ok Types Node = node() Stops (kills) a node. pseudo([Master | ServerList]) -> ok Types Master = node() ServerList = [atom()] Calls pseudo(Master, ServerList) . If we want to start a node from the command line and set up a number of pseudo servers, an Erlang runtime system can be started as follows: % erl -name abc -s slave pseudo klacke@super x -- pseudo(Master, ServerList) -> ok Types Master = node() ServerList = [atom()] Starts a number of pseudo servers. A pseudo server is a server with a registered name which does absolutely nothing but pass on all message to the real server which executes at a master node. A pseudo server is an intermediary which only has the same registered name as the real server. For example, if we have started a slave node N and want to execute pxw graphics code on this node, we can start the server pxw_server as a pseudo server at the slave node. The following code illustrates: rpc:call(N, slave, pseudo, [node(), [pxw_server]]). relay(Pid) Types Pid = pid() Runs a pseudo server. This function never returns any value and the process which executes the function will receive messages. All messages received will simply be passed on to Pid . Ericsson AB stdlib 1.17.3 slave(3erl)
All times are GMT -4. The time now is 09:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy