Questions tagged [.netrc]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
210 views

Why does curl -n fail in one script but not others?

Why does curl -n fail in one script but not others? curl 7.67.0 running on MacOS High Sierra The following code in one script: host="ftp.xxxxxx.com/public_html/" /opt/local/bin/curl -n -T $file $...
1
vote
1answer
6k views

CURL request using .netrc file

I am trying to write a script which is saving the credentials to a .netrc file and then it is reading from the file in order to pass them to a curl command and saves the returned cookie file for ...
2
votes
2answers
3k views

Can lftp read netrc for sftp-connections

I am trying to create a script to upload some files to a server via SFTP. I can do that manually by opening an interactive lftp-session and providing username and password there. For the script, I ...
1
vote
1answer
2k views

Specify anonymous ftp password in ftp command

I would like a simple (ideally one-liner, without separate script file) command to connect to an ftp server via anonymous login using my email address as the password. My attempt is based on the ...
3
votes
1answer
322 views

Character encoding of .netrc

Does anyone know which character encoding is used in .netrc? As a German user, I sometimes put umlauts in passwords. So my question is, are these treated as latin1 or may I assume that I am doing ...
15
votes
4answers
75k views

Invalid cross-device link while Hardlinking in the same file system

I have /home/myuser/Desktop/rc/.netrc file that i want hardlink to /root, ie home directory of root user. When i do: ln /home/user/Destkop/rc/.netrc /root it gives the following error: ln: ...
8
votes
2answers
1k views

ncftp not looking into .netrc

I have this sort of stanza in my .netrc: machine ftp.mydomain.com login mylogin password mypassword and while I can successfully connect with ftp: ftp ftp.mydomain.com and passing ...