Skip to main content

Questions tagged [.netrc]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer

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="" /opt/local/bin/curl -n -T $file $...
Buadhai's user avatar
  • 237
5 votes
1 answer

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 ...
Georgi Stoyanov's user avatar
3 votes
4 answers

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 ...
kronn's user avatar
  • 399
2 votes
1 answer

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 ...
Daniel Naftalovich's user avatar
2 votes
1 answer

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 ...
Mirko Friedenhagen's user avatar
22 votes
5 answers

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: ...
Elvin Aslanov's user avatar
8 votes
2 answers

ncftp not looking into .netrc

I have this sort of stanza in my .netrc: machine login mylogin password mypassword and while I can successfully connect with ftp: ftp and passing ...
neurino's user avatar
  • 1,819