root@gate:~# apt-get install rsh-server
[gate:~] # cat /etc/inetd.conf
... shell stream tcp nowait root /usr/libexec/rshd rshd ...
gate# su - user1 $ cat .rhosts
client1 client1 root
$ chmod 600 .rhosts
root@server:~# apt install rsh-client ubuntu24# apt install rsh-redone-client # или скопировать файлы /usr/bin/netkit-rcp и /usr/bin/netkit-rsh из docker ubuntu:jammy
Присутствует штатно
client1$ rsh gate "uname -a" client1$ cat /etc/hosts | rsh gate "cat > hosts.bak" client1$ rcp /etc/hosts gate:hosts.bak client1# cd /; tar -cvf - etc/ | rsh -l user1 gate "cat > etc.tar"
# rsh router show run # rcp router:running-config /srv/tftp/router.conf # rcp /srv/tftp/firewall.acl router:running-config C:\>rsh router -l root show run C:\>rcp router.root:running-config router.conf C:\>rcp firewall.acl router:running-config
root@gate:~# apt-get install telnetd root@gate:~# cat /etc/inetd.conf
[gate:~] # cat /etc/inetd.conf
... telnet stream tcp nowait root /usr/libexec/telnetd telnetd ...