Table of Contents

Сервисы TELNET RSH

http://en.wikipedia.org/wiki/Remote_shell

RSH

Установка сервера

Ubuntu

root@gate:~# apt-get install rsh-server

FreeBSD

[gate:~] # cat /etc/inetd.conf
...
shell  stream  tcp     nowait  root    /usr/libexec/rshd       rshd
...

Cisco

Настройка rcmd сервисов

Настройка доступа по RSH

Linux/FreeBSD

gate# su - user1

$ cat .rhosts
client1

client1 root
$ chmod 600 .rhosts

Cisco

Установка клиента

Debian/Ubuntu

root@server:~# apt install rsh-client

ubuntu24# apt install rsh-redone-client  # или скопировать файлы /usr/bin/netkit-rcp и  /usr/bin/netkit-rsh из docker ubuntu:jammy

FreeBSD

Присутствует штатно

Windows

Варианты использования

Linux/FreeBSD

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"

Cisco

# 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

Telnet

http://ru.wikipedia.org/wiki/Telnet

Ubuntu

root@gate:~# apt-get install telnetd

root@gate:~# cat /etc/inetd.conf

FreeBSD

[gate:~] # cat /etc/inetd.conf
...
telnet stream  tcp     nowait  root    /usr/libexec/telnetd    telnetd
...