On Sat, Oct 14, 2017 at 11:18 AM, Federico Giannici <[email protected]> wrote:
> I'd like to do a"dump" of a filesystem to a remote machine. > > The dump command man page says to use "-f user@host:file", but sniffing > the network traffic I have found that it tries to connect to the 514 TCP > port, the rsh protocol port. But it seems to me that rsh has been removed > from OpenBSD since a lot of time... > > Am I correct? > > What is the current solution today? > If you follow the manpage cross-reference to rcmd(3) you'll find that if the RSH environment variable is set then its value will be used as the program to execute to do the transfer/connection instead of using the shell/tcp port directly. Setting RSH=/usr/bin/ssh in the environment of dump should get you what you need. As for the manpage, since dump(8) and rmt(8) are the only remaining programs in tree that use rcmd(3), maybe duplicating that info into their manpages is now the Right Thing. Ingo? Philip Guenther

