Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Aug 2018 14:55:20 -0300
From:      Mario Lobo <lobo@bsd.com.br>
To:        freebsd-hackers@freebsd.org
Cc:        Wojciech Puchar <wojtek@puchar.net>
Subject:   Re: how to use ftp(1) in batch mode
Message-ID:  <CA%2ByoEx-kJ-7_N%2BcRQvCh5Uu3S4vXjFXh0vyAnQhEKaDC93yURg@mail.gmail.com>
In-Reply-To: <99dde87e-1ddf-e1bc-a1a1-081718100f51@grosbein.net>
References:  <alpine.BSF.2.20.1808301449001.26234@puchar.net> <5B87F083.6080804@grosbein.net> <alpine.BSF.2.20.1808311551550.4910@puchar.net> <99dde87e-1ddf-e1bc-a1a1-081718100f51@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
2018-08-31 11:01 GMT-03:00 Eugene Grosbein <eugen@grosbein.net>:

> 31.08.2018 20:52, Wojciech Puchar write:
>
> > thank you. it works. actually even without netrc
> >
> > (echo command1;echo command2)|ftp ftp://user:password@server/
>
> You better not develop a habit typing passwords in command line or URLs,
> this is quite insecure.
>
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>

I believe that using sftp with authorized keys in batch mode is safer. The
batch file would only need to have the actual commands.

The only drawback for this method to be fully non-interactive is that you
have to take out the passphrase from the private key.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2ByoEx-kJ-7_N%2BcRQvCh5Uu3S4vXjFXh0vyAnQhEKaDC93yURg>