Question:
How can I do a non Interactive ftp on unix?
Aniraka
2009-02-03 10:36:25 UTC
On MS-DOS I could do ftp -s:, where is a text file which has the commands I would use on a normal connexion. However, if want to do the same on linux, the argument "-s" is not recognized. Any of you knows how to do it?
Four answers:
2009-02-04 09:25:25 UTC
On Unix, any command can be done in a script, but a few

like FTP have the issue of an interactive password. It's not

the most secure thing in the world, but you can create a

$HOME/.netrc file to specify the login and password for

an ftp login. It MUST be given 600 permissions:



chmod 600 $HOME/.netrc



and should be of the format (on one line):



machine MACHNAME login YOURLOGIN password YOURPASSWD



where you substitute the target machine for MACHNAME,

your login name for YOURLOGIN, and your ftp password

for YOURPASSWD. Since the file is 600, others shouldn't

be able to read it. However, if you local account is

compromised, then your ftp site will be open to them.



Note that the password is transmitted in cleartext, so network

sniffers can see it too.
?
2016-12-11 20:31:30 UTC
Non Interactive Ftp
Brian K
2009-02-10 07:09:52 UTC
If you go the scp route, you can either create a .shosts file on the remote system (if the remote server honors them), or you can try to arrange to have the key in ssh-agent before running the script. The latter is more secure, but also more hassle, as someone must still enter a password at some point, just not at the time the script runs.
?
2016-03-15 05:58:56 UTC
Everything is vibratory & that's easiest to see with sound. One sound can be a rate of vibration that is in harmony with the surroundings & our personal vibratory rate while another might not be. There are also sounds that can increase the vibratory rate of the surrounding area. Still they are all interactive, or all have an effect. Everything is interactive.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...