From owner-freebsd-questions Tue Nov 12 18:37:19 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA19945 for questions-outgoing; Tue, 12 Nov 1996 18:37:19 -0800 (PST) Received: from scanner.worldgate.com (scanner.worldgate.com [198.161.84.3]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id SAA19940 for ; Tue, 12 Nov 1996 18:36:57 -0800 (PST) Received: from znep.com (uucp@localhost) by scanner.worldgate.com (8.7.5/8.7.3) with UUCP id TAA20738; Tue, 12 Nov 1996 19:36:10 -0700 (MST) Received: from localhost (marcs@localhost) by alive.ampr.ab.ca (8.7.5/8.7.3) with SMTP id TAA16284; Tue, 12 Nov 1996 19:35:00 -0700 (MST) Date: Tue, 12 Nov 1996 19:34:55 -0700 (MST) From: Marc Slemko X-Sender: marcs@alive.ampr.ab.ca To: Wes Santee cc: questions@freebsd.org Subject: Re: Any way to use rdump w/ssh? In-Reply-To: <199611110112.RAA04043@kryten.bogon.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Something along the lines of: ssh remotehost /sbin/dump 0Bfu 4000000 - / > /dev/nrst0 run from the machine with the tape drive will work (even better if you pipe it through something like team to get some more buffering), but you loose automatic end of tape checking (it should still be able to figure out eventually that the end of tape has been reached, but will probably be too late to allow you to continue like dump normally does) and you may have to play with blocksizes (eg. mt blocksize 512) to get it to write correctly. You will also probably want to use something like '-c arcfour' to use arcfour encryption, which is a good bit less CPU intensive than the default. On Sun, 10 Nov 1996, Wes Santee wrote: > 'Lo all. I don't run any of the r* (rshd, rlogind, rexecd) servers on > my machines. I do run sshd, however, and I'd like to use rdump to > backup a filesystem to another server. Does anyone know of a way to > get the rcmd() call in rdump to use ssh as its connection mechanism so > authentication happens, without having to hack up libc? > > I fear the only way out of this is to hack rdump and replace the call > to rcmd() with code that executes ssh(1) instead to both authenticate > and issue the rmt command. However, I figured I'd see if a more > elegant kludge exists first. > > Cheers, > -- > ( -Wes Santee Homepageless - and proud ) > ( PGP: email w/Subject: "Send PGP Key" Powered by FreeBSD ) >