How to use rsh on FreeBSD12

Almost a year ago, the rsh and rlogin r commands were removed from FreeBSD CURRENT. This will be FreeBSD 12.0-RELEASE.

Recently, since virtual environments are also used, it has rather increased to construct a closed network and communicate using rsh. That’s why deleting the r command is a hassle. When sending large capacity with rsync, zfs send, etc., the load of ssh is too large.

Following the removal of the r command, net/bsdrcmds was created in ports. By inserting this, rsh can be used.

# cd /usr/port/net/bsdrcmds
# make install clean

Now rshd and rlogind are in /usr/local/sbin. When starting with inetd, it is necessary to rewrite /etc/inetd.conf.

shell   stream  tcp     nowait  root    /usr/libexec/rshd       rshd
login   stream  tcp     nowait  root    /usr/libexec/rlogind    rlogind

To

shell   stream  tcp     nowait  root    /usr/local/sbin/rshd       rshd
login   stream  tcp     nowait  root    /usr/local/sbin/rlogind    rlogind

Pam is also enabled in rshd from this port. Can be set in /etc/pam.d/rsh

Share

One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *