From owner-freebsd-questions Thu Mar 12 21:35:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA26382 for freebsd-questions-outgoing; Thu, 12 Mar 1998 21:35:34 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from infowest.com (infowest.com [204.17.177.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA26339 for ; Thu, 12 Mar 1998 21:35:21 -0800 (PST) (envelope-from agifford@infowest.com) Received: from infowest.com (dialup5-21.infowest.net [207.49.60.124]) by infowest.com (8.8.8/8.8.5) with ESMTP id WAA26690; Thu, 12 Mar 1998 22:34:49 -0700 (MST) Message-ID: <3508C558.1174639A@infowest.com> Date: Fri, 13 Mar 1998 05:34:16 +0000 From: "Aaron D. Gifford" X-Mailer: Mozilla 4.03 [en] (X11; U; FreeBSD 2.2.6-BETA i386) MIME-Version: 1.0 To: questions@FreeBSD.ORG, eddie@wicked.eaznet.com, sue@welearn.com.au Subject: Re: ssh References: <19980312163828.28109@wicked.eaznet.com.> <3508A6F4.24D119F9@dal.net> <19980313145930.62669@welearn.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ssh's scp program is very nice: scp local-file user@remote.host:remote-filename copies a local file to the remote host (connecting as "user") and saving it as "remote-filename", which filename can be omitted if the filename is to remain the same, as in: scp local-file user@remote.host: just reverse the local/remote stuff to copy a remote file to the local machine some other examples of scp I've used: scp -r local-dir user@remote.host:remote-dir (to copy the entire directory structure) scp 'user@remote.host:*' local-dir/ very useful tool and it gives you a nice warm feeling knowing the transfers are encrypted to keep potentially sensitive data hidden from prying eyes every now and then it's nice to just use ssh to capture output to a remote file, or to pipe a remote command's output to a local file, but when doing so, be sure to add the "-e none" switch so that any data in the stream won't trigger ssh's escape mechanism: ssh -e none -l user remote.host '/do/this/command -with-these-args' > local.output.file is handy as is ./run/this/perl/script | ssh -e none -l user remote.host 'cat > remote.output.file' anyway I thought that some real-life examples might help -- as usual, the man pages are the real resource Aaron out. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message