From owner-freebsd-questions Tue Nov 12 07:52:08 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA01096 for questions-outgoing; Tue, 12 Nov 1996 07:52:08 -0800 (PST) Received: from torrent.hydro.on.ca (beck.Hydro.ON.CA [192.75.134.5]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id HAA01080 for ; Tue, 12 Nov 1996 07:51:56 -0800 (PST) X-Authentication-Warning: torrent: Host usenet.Hydro.ON.CA claimed to be usenet.Hydro.ON.CA Received: from pc-servicej.rd.hydro.on.ca (root@pc-servicej.RD.Hydro.ON.CA [142.7.120.62]) by usenet.Hydro.ON.CA (8.6.12/8.6.12) with ESMTP id KAA16972; Tue, 12 Nov 1996 10:50:46 -0500 Received: (from jservice@localhost) by pc-servicej.rd.hydro.on.ca (8.7.5/8.7.3) id KAA02069; Tue, 12 Nov 1996 10:50:31 -0500 (EST) Date: Tue, 12 Nov 1996 10:50:31 -0500 (EST) Message-Id: <199611121550.KAA02069@pc-servicej.rd.hydro.on.ca> From: "James R. R. Service" To: wes@bogon.net CC: questions@freebsd.org In-reply-to: <199611110112.RAA04043@kryten.bogon.net> (message from Wes Santee on Sun, 10 Nov 1996 17:12:23 -0800 (PST)) Subject: Re: Any way to use rdump w/ssh? Reply-to: jservice@OHT.Hydro.ON.CA Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >>>>> "Wes" == Wes Santee writes: Wes> 'Lo all. I don't run any of the r* (rshd, rlogind, rexecd) servers on Wes> my machines. I do run sshd, however, and I'd like to use rdump to Wes> backup a filesystem to another server. Does anyone know of a way to Wes> get the rcmd() call in rdump to use ssh as its connection mechanism so Wes> authentication happens, without having to hack up libc? Wes> I fear the only way out of this is to hack rdump and replace the call Wes> to rcmd() with code that executes ssh(1) instead to both authenticate Wes> and issue the rmt command. However, I figured I'd see if a more Wes> elegant kludge exists first. I have run into this problem myself. However, if you look in the sources for tar (rtapelib.c) it uses pipe(2) and execl(3) and starts "/usr/bin/rsh" etc. So if and when I get the time (after Christmas perhaps) I might borrow the tar code and try it in dump. -- James (Jim) R.R. Service Internet: jservice@oht.hydro.on.ca Ontario Hydro Technologies 800 Kipling Ave. - Room KR128 FAX: (416) 207-5623 Toronto, Ontario, CANADA M8Z 5S4 voice: (416) 207-6946