Questions tagged [rsh]

The remote shell (rsh) is a command line computer program

The remote shell (rsh) is a command line computer program that can execute shell commands as another user, and on another computer across a computer network.

more info

29 questions
4
votes
2 answers

rsh shows "poll: protocol failure in circuit setup", why?

In the starting rsh worked properly, but after making some changes it shows some error [changes are shown in the end of this question, see that], I am sharing the same. Command $ /usr/bin/rsh localhost ulimit -n Output poll: protocol failure in…
devsda
  • 427
  • 3
  • 10
  • 19
4
votes
1 answer

Execute script on a remote server contained on client side

I am trying to figure out how I could manage more easily my servers. I'd like to know if I can make my scripts available to all the servers without copying them to the servers. They are located in my computer (client side), bash-3.2$ ls -l…
mrgamertag
  • 41
  • 3
4
votes
0 answers

AIX NIM Master replicate / sync fails to an Alternate Master

I am getting a error when I try to replicate / sync my NIM database and resources to an Alternate NIM Master newly created in my environment: error replicating resources: unable to /usr/lpp/bos.sysmgt/nim/methods/c_rsh I…
danielbmeireles
  • 61
  • 1
  • 1
  • 4
3
votes
1 answer

rhosts changes and re-initializing

I'm having trouble using the r-commands between my servers to do a tape backup. I've been making changes in the .rhosts file, but I'm not sure if the OS reads that file everytime it's called, or just when it's booted, or some other time. After I…
3
votes
3 answers

Command to trace rsh server to check behaviour of particular system call

I am working with rsh. I want to check the whole process from beginning to end. For that I used strace. Os name is CentOS. I am working on single machine, server and client are on same machine. My command is , rsh localhost ulimit -n To take a…
devsda
  • 427
  • 3
  • 10
  • 19
3
votes
2 answers

Ways to optimize performance in pipelines over network (RSH and SSH)

Consider a data transfer over a pipeline network in legacy systems with remote shell (RSH), like: rsh host -l user tar -cf - /home/dir \| compress | uncompress | tar -xvf - and this one in 'modern' systems: ssh user@host tar -cf - /home/dir \| gzip…
Luciano
  • 1,129
  • 4
  • 15
  • 26
2
votes
1 answer

Running rsh command under the root account

I have two machines running Solaris 9 (192.168.2.9) and Windows XP (192.168.2.5). I need to run the following command on the Windows machine: rsh 192.168.2.9 -l root pwd To be able to run this command I've created the /etc/hosts.equiv file on the…
Snowjay
  • 35
  • 1
  • 5
2
votes
1 answer

Why can't I use strace with rsh?

If I run rsh, it works, but prints some strange “Connection refused” messages at the beginning: $ rsh localhost pwd connect to address 127.0.0.1 port 544: Connection refused Trying krb4 rsh... connect to address 127.0.0.1 port 544: Connection…
devsda
  • 427
  • 3
  • 10
  • 19
2
votes
1 answer

Rsync over custom shell with fifo

I'm trying to use rsync over a custom shell created with fifo. However I cannot find a way to deal with it : The script initsh to simulate a standard shell by fifo : #!/bin/bash rm fin mkfifo fin rm fout mkfifo fout rm ferr mkfifo ferr rm…
Xorax
  • 515
  • 1
  • 5
  • 9
2
votes
3 answers

Can RSH be told to use a specific shell

I am working with a c++ application which fires off a system command that launches a RSH sequence such as: rsh MACHINE \"setenv DISPLAY machine:0;setenv TESTVALUE1 'test';setenv scenTime 0;setenv simName 'name';/devel/test/run.sh\" The problem is…
Jeef
  • 157
  • 1
  • 7
1
vote
0 answers

how to install rsh/rlogin on RHEL 9

I need to install rsh/rlogin services on a RHEL9 host. It looks like these services were removed from the distribution and also from EPEL. I know all the reasons not to install these, but I need to anyway. Is there a way I can do it?
mikem
  • 806
  • 3
  • 8
1
vote
3 answers

rsh runs perfectly in normal user but not in root, very strange, why?

When I run command, rsh localhost pwd as a root It shows below output. connect to address 127.0.0.1 port 544: Connection refused Trying krb4 rsh... connect to address 127.0.0.1 port 544: Connection refused trying normal rsh (/usr/bin/rsh) rcmd:…
devsda
  • 427
  • 3
  • 10
  • 19
1
vote
0 answers

After restarting xinetd service, rsh shows "poll: protocol failure in circuit setup"

I have searched a lot in various forums and most indicate that the solution is to open ports in the firewall or restart the xinetd service. Although that may be the solution in some cases, I think the problem is another and is still pending…
1
vote
2 answers

What is rsh.rlogin and How to remove rsh.rlogin

I never heard of this word rsh and also received a check list from Security pro that we have to disable rsh. Can someone please tell me what is this rsh and how to disable it. Base OS : RHEL 5.5 and 5.6
OmiPenguin
  • 4,168
  • 34
  • 79
  • 111
1
vote
1 answer

How enable non-privileged user to connect using rsh?

I have two hosts with Red Hat 7.4 , HostA and HostB. The rsh-server and rsh packages was installed in both. At both hosts, the rsh deamon was activated, the commands rsh,rlogin,rexec was added to /etc/securetty, at /etc/hosts.equiv the HostA and…
ceinmart
  • 501
  • 1
  • 6
  • 17
1
2