Sponsored Content
Operating Systems Solaris rsh is not working ,error :connection refused Post 302203394 by aneita on Sunday 8th of June 2008 01:18:24 PM
Old 06-08-2008
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. AIX

RSH command is giving error (connection refused)

All, I am using AIX 5.3. while running the rsh command I am getting below error message. ------------------ A remote host refused an attempted connect operation. ------------------ .rhost file is updated with correct entry on both the servers. I.e. Login ID Server name in /etc/hosts... (12 Replies)
Discussion started by: anshu ranjan
12 Replies

4. 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

5. 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

6. 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

7. 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

8. Debian

ftp connection refused

I have two computers running Debian 6.0 and one running Solaris 2.6 on a private network. The Debian computers can ftp to the Solaris computer but if a Debian computer is the destination the ftp connection is refused. I assume this is some security feature of Debian. What can I do to allow... (2 Replies)
Discussion started by: snorkack59
2 Replies

9. Shell Programming and Scripting

FTP connection refused

Hi I am trying to execute a shell script which is in unix server gs1. The script is below which basically connects to another unix server q15 and tries to get a file using FTP . But i get error as "ftp: connect: Connection refused Not connected. Not connected." Please help with if the below... (8 Replies)
Discussion started by: samrat dutta
8 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
RSH(1)							    BSD General Commands Manual 						    RSH(1)

NAME
rsh -- remote shell SYNOPSIS
rsh [-45FGKdefnuxz] [-U string] [-p port] [-l username] [-P N|O] host [command] DESCRIPTION
rsh authenticates to the rshd(8) daemon on the remote host, and then executes the specified command. rsh copies its standard input to the remote command, and the standard output and error of the remote command to its own. Valid options are: -4, --krb4 The -4 option requests Kerberos 4 authentication. Normally all supported authentication mechanisms will be tried, but in some cases more explicit control is desired. -5, --krb5 The -5 option requests Kerberos 5 authentication. This is analogous to the -4 option. -K, --broken The -K option turns off all Kerberos authentication. The security in this mode relies on reserved ports. The long name is an indica- tion of how good this is. -n, --no-input The -n option directs the input from the /dev/null device (see the BUGS section of this manual page). -d Enable setsockopt(2) socket debugging. -e, --no-stderr Don't use a separate socket for the stderr stream. This can be necessary if rsh-ing through a NAT bridge. -x, --encrypt The -x option enables encryption for all data exchange. This is only valid for Kerberos authenticated connections (see the BUGS sec- tion for limitations). -z The opposite of -x. This is the default, and is mainly useful if encryption has been enabled by default, for instance in the appdefaults section of /etc/krb5.conf when using Kerberos 5. -f, --forward Forward Kerberos 5 credentials to the remote host. Also settable via appdefaults (see krb5.conf). -F, --forwardable Make the forwarded credentials re-forwardable. Also settable via appdefaults (see krb5.conf). -l string, --user=string By default the remote username is the same as the local. The -l option or the username@host format allow the remote name to be speci- fied. -n, --no-input Direct input from /dev/null (see the BUGS section). -p number-or-service, --port=number-or-service Connect to this port instead of the default (which is 514 when using old port based authentication, 544 for Kerberos 5 and non- encrypted Kerberos 4, and 545 for encrytpted Kerberos 4; subject of course to the contents of /etc/services). -P N|O|1|2, --protocol=N|O|1|2 Specifies the protocol version to use with Kerberos 5. N and 2 select protocol version 2, while O and 1 select version 1. Version 2 is believed to be more secure, and is the default. Unless asked for a specific version, rsh will try both. This behaviour may change in the future. -u, --unique Make sure the remote credentials cache is unique, that is, don't reuse any existing cache. Mutually exclusive to -U. -U string, --tkfile=string Name of the remote credentials cache. Mutually exclusive to -u. -x, --encrypt The -x option enables encryption for all data exchange. This is only valid for Kerberos authenticated connections (see the BUGS sec- tion for limitations). -z The opposite of -x. This is the default, but encryption can be enabled when using Kerberos 5, by setting the libdefaults/encrypt option in krb5.conf(5). EXAMPLES
Care should be taken when issuing commands containing shell meta characters. Without quoting, these will be expanded on the local machine. The following command: rsh otherhost cat remotefile > localfile will write the contents of the remote remotefile to the local localfile, but: rsh otherhost 'cat remotefile > remotefile2' will write it to the remote remotefile2. FILES
/etc/hosts SEE ALSO
ktelnet(1), krb_realmofhost(3), krb_sendauth(3), hosts.equiv(5), krb5.conf(5), rhosts(5), kerberos(8) rshd(8) HISTORY
The rsh command appeared in 4.2BSD. AUTHORS
This implementation of rsh was written as part of the Heimdal Kerberos 5 implementation. BUGS
Some shells (notably csh(1)) will cause rsh to block if run in the background, unless the standard input is directed away from the terminal. This is what the -n option is for. The -x options enables encryption for the session, but for both Kerberos 4 and 5 the actual command is sent unencrypted, so you should not send any secret information in the command line (which is probably a bad idea anyway, since the command line can usually be read with tools like ps(1)). Forthermore in Kerberos 4 the command is not even integrity protected, so anyone with the right tools can modify the command. HEIMDAL
February 20, 2004 HEIMDAL
All times are GMT -4. The time now is 08:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy