Questions tagged [.netrc]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
3k 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
2k 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 ...
0
votes
1answer
1k 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
238 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 ...
14
votes
2answers
58k 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: ...
7
votes
2answers
878 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 ...