Hi.
It worked for me -- Debian Linux to SuSE Linux.
There were two requirements:
1) a line with "machine name"
2) read permissions
only for owner
After meeting those, the operation seemed to work. Here is a little script that creates a file and transfers it. I turned on verbose mode to display the operations:
Code:
#!/bin/sh -
# @(#) s1 Demonstrate auto-login for ftp.
( date; echo " Hello, world." ) > t1
ftp -v limb <<'EOF'
put t1
quit
EOF
exit 0
Producing:
Code:
% ./s1
Connected to limb.
220 limb.local FTP server (Version 6.5/OpenBSD, linux port 0.3.3) ready.
331 Password required for drl.
230- Have a lot of fun...
230 User drl logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
local: t1 remote: t1
200 PORT command successful.
150 Opening BINARY mode data connection for 't1'.
226 Transfer complete.
44 bytes sent in 0.00 secs (1074.2 kB/s)
221 Goodbye.
The .netrc file looks like:
Code:
% cat ~/.netrc
machine limb
login drl
password (secret)
Best wishes ... cheers, drl