RSH in Centos 8

Issues related to applications and software problems and general support
Post Reply
besu
Posts: 2
Joined: 2019/10/07 13:18:25

RSH in Centos 8

Post by besu » 2019/10/07 13:21:33

Hello Everyone.

I have some problems to install rsh in Centos 8.

Can someone help me?

"yum install rsh rsh-server" dont work for me.

Thanks

mikemikew
Posts: 8
Joined: 2019/09/25 11:19:29

Re: RSH in Centos 8

Post by mikemikew » 2019/10/08 13:53:07

rsh and rsh-server were removed in RHEL 8 with the comment "To log in to remote systems, use SSH instead." which seems reasonable given it's 2019 not 1989. ;)

https://access.redhat.com/documentation ... o-packages

Do you know rsh is insecure?

besu
Posts: 2
Joined: 2019/10/07 13:18:25

Re: RSH in Centos 8

Post by besu » 2019/10/09 11:17:23

mikemikew wrote:
2019/10/08 13:53:07
rsh and rsh-server were removed in RHEL 8 with the comment "To log in to remote systems, use SSH instead." which seems reasonable given it's 2019 not 1989. ;)

https://access.redhat.com/documentation ... o-packages

Do you know rsh is insecure?
Thank your for the information.

NITESupport
Posts: 6
Joined: 2016/06/27 11:01:15

Re: RSH in Centos 8

Post by NITESupport » 2021/05/19 10:40:58

Hello

I need rsh just to "transfert" a DB from one server to another.
Just during the installation.

IBM gives the command like this (step 5)
https://www.ibm.com/docs/en/informix-se ... admin_0932

Code: Select all

rsh primary_host ontape_HDR_backup.ksh | ontape -p -t STDIO
Someone can help me to run it with ssh ?

Thanks

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: RSH in Centos 8

Post by jlehtone » 2021/05/19 12:03:25

That command executes script 'ontape_HDR_backup.ksh' on machine 'primary_host'. The stdout of that remote script comes to the 'rsh' process over the connection and is then piped to 'ontape' process on localhost.

With ssh you should get about same with:

Code: Select all

ssh primary_host ontape_HDR_backup.ksh | ontape -p -t STDIO
See https://www.maketecheasier.com/ssh-pipes-linux/

NITESupport
Posts: 6
Joined: 2016/06/27 11:01:15

Re: RSH in Centos 8

Post by NITESupport » 2021/05/20 05:16:21

Thanks jlehtone

I understand what the command do...
I just not sure that using :ssh + command will work the same
By the past i tried, and it was quite cumbersome with some "is not allowed to connect".

I had to edit the sshd_config,
The parameter AllowUsers didn't work as expected
Because of this, using rsh is a lot more simple... it works.

But no choice...
I will have to deal with this :?

Thanks

chemal
Posts: 776
Joined: 2013/12/08 19:44:49

Re: RSH in Centos 8

Post by chemal » 2021/05/20 05:41:52

Epel 8 has rsh and rsh-server packages.

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: RSH in Centos 8

Post by jlehtone » 2021/05/20 07:02:05

NITESupport wrote:
2021/05/20 05:16:21
By the past i tried, and it was quite cumbersome with some "is not allowed to connect".

I had to edit the sshd_config,
The parameter AllowUsers didn't work as expected
That is a question about how to use ssh.
sshd allows all accounts, even root with password authentication, by default. I update sshd_config only to add restrictions.

ssh is (almost) only inbound connection that is allowed by the default firewall. It is the de facto standard method to connect to remote hosts.

Post Reply