[olug] Unix Tip: FTY AUTOMATED TRANSFERS

Trent Melcher tmelcher at trilogytel.com
Thu May 15 16:38:19 UTC 2003


SSH is available in Netware 6.5,  I dont think any older versions has it.
DOnt know if you can add it to older versions either.

Trent

-----Original Message-----
From: olug-bounces at olug.org [mailto:olug-bounces at olug.org]On Behalf Of
Craig Wolf
Sent: Thursday, May 15, 2003 10:30 AM
To: olug at olug.org
Subject: Re: [olug] Unix Tip: FTY AUTOMATED TRANSFERS


The problem with scp is that I can't do this to a NetWare server, that I am
aware of.  I have been using the .netrc and script for about 2 years now to
keep my website updated.  Twice a day.

Craig Wolf
Linux Web Server Support
Backup Supervisor
Desktop/Network Specialist
402-894-6283


>>> olug at einer.org 5/13/2003 >>>
scp will do this (in fewer steps no less).

scp sourceFile username at targetComputer:/path/to/destination/

Or, for a full directory transfer:

scp -r sourceDirectory username at targetComputer:/path/to/destination/

enter your password.  enjoy a beverage.

scp is the Secure Copy utility provided in the OpenSSL packages (I
think... er... could be wrong here).  It can do a bunch more stuff too.

A longer (and better) explanation is available at
http://einer.org/forum/viewtopic.php?t=467
(Shameless plug).  :^)

Andrew Holm-Hansen

On Mon, 2003-05-12 at 22:43, Daniel Pfile wrote:
> I don't have a problem with it, as long as the target account is a low
> permission user. Something like a chrooted jail for backups or a
> special file drop via a custom ftp or web server type account. You'd
> want to be sure the source machine was very secure also, at least
> behind a strong firewall. I wouldn't have a password sitting on a front
> end machine.
>
> As always, it's a balance between security and easy of use. For just
> being lazy, it's not a good idea, but if you need a script to transfer
> a file once an hour, it's worth looking into.
>
> -- Daniel
>
> On Monday, May 12, 2003, at 09:37 PM, Trent Melcher wrote:
>
> > I don't know about the rest of you, but I have never been confortable
> > hardcoding a password in a script, no matter what the permissions of
> > the
> > file are.
> >
> > Trent
> >
> > -----Original Message-----
> > From: olug-bounces at olug.org [mailto:olug-bounces at olug.org] On Behalf Of
> > Unix Guru Universe
> > Sent: Monday, May 12, 2003 6:36 PM
> > To: olug at olug.org
> > Subject: [olug] Unix Tip: FTY AUTOMATED TRANSFERS
> >
> >
> >
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> >
> > 			      UNIX GURU UNIVERSE
> > 			         UNIX HOT TIP
> >
> > 			Unix Tip 1958 - May 12, 2003
> >
> > 		    http://www.ugu.com/sui/ugu/show?tip.today
> >
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> >
> >
> > FTY AUTOMATED TRANSFERS
> >
> > Automatic file transfer through a script
> > between machines using FTP.
> >
> > If one wants to transfer files between
> > UNIX machines, here are the steps to follow.
> > 1. The .netrc file
> >    a. create .netrc in the home directory.
> >    b. add this line
> >    machine <target machine> login <login name> password <password>
> >
> >       e.g.
> >    machine abc.mydomain.com login deepak password deep123
> >
> >    c. chmod 600 .netrc
> >
> > 2. The Script:
> >    ftp abc.mydomain.com  << endl
> >    prompt
> >    put test1.c
> >    quit
> >    endl
> >
> > This should do it.
> >
> >
> > This tip generously supported by: dkotian1 at rediffmail.com
> >
> >
> > -----------------------------------------------------------------------
> > -
> > --
> > To Subscribe:    http://www.ugu.com/sui/ugu/show?tip.subscribe
> > To Unsubscribe:  http://www.ugu.com/sui/ugu/show?tip.unsubscribe
> > To Submit A Tip: http://www.ugu.com/sui/ugu/show?tip.today
> >
> > =======================================================================
> > =
> > ==
> > DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND
> > ARE NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE
> > UNIX
> > GURU UNIVERSE. ALL TIPS ARE "USE AT YOUR OWN RISK". UGU  ADVISES THAT
> > ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.
> >
> > Unix Guru Universe - www.ugu.com - tips at ugu.com - Copyright 1994-2001
> > =======================================================================
> > =
> > ==
> >
> > _______________________________________________
> > OLUG mailing list
> > OLUG at olug.org
> > http://lists.olug.org/mailman/listinfo/olug
> >
> >
> > _______________________________________________
> > OLUG mailing list
> > OLUG at olug.org
> > http://lists.olug.org/mailman/listinfo/olug
>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug

_______________________________________________
OLUG mailing list
OLUG at olug.org
http://lists.olug.org/mailman/listinfo/olug
_______________________________________________
OLUG mailing list
OLUG at olug.org
http://lists.olug.org/mailman/listinfo/olug




More information about the OLUG mailing list