.netrc

Specify password to sftp in a Bash script [duplicate]

孤人 提交于 2019-12-04 04:00:45
This question already has answers here : Closed 4 years ago . How to run the sftp command with a password from Bash script? (9 answers) I am trying to write a script to back up a file over SFTP. The problem is, it requires a password, and I see no way to manually specify a password to SFTP. I've heard about requiring no password by using public keys, but that requires being able to ssh into the remote server and modify some configuration files, which I cannot do. Currently my solution is to use cURL , but that is insecure (uses normal FTP). I also looked at the .netrc file, but that seems to

Git .netrc file authentication issue

旧城冷巷雨未停 提交于 2019-12-03 21:06:39
I am using GitHub. I created a repository and cloned it on my Ubuntu machine. I have made an entry in the .netrc file as follows: machine https://github.com/xxx/yyy.git login xxx xxx I am expecting that Git will not ask me for the username and password after this entry in the .netrc file. But Git prompts for credentials even after this. Am I missing something? VonC The ~/.netrc (or %HOME%\_netrc on Windows) file isn't enough. You would need to copy the git-credential-netrc file anywhere in your $PATH / %PATH% , add: cd yourRepo git config credential.helper "netrc -d -v" (You can remove -d and

File '_netrc' / '.netrc' is not accepted by Git

*爱你&永不变心* 提交于 2019-12-01 01:42:55
问题 I have set the %HOME% environment variable on my Windows installation. In that folder I have put a file called _netrc. Inside that file I have: machine code.google.com login <logon> password <censored> But both, MSYS and Tortoise keep asking for a password. I am using Windows 7, MSYSGit and TortoiseGit. Why does this not work? I have found an article on Stack Overflow that said it must be named _netrc and not .netrc, but none of them work. 回答1: Assuming you did everything that was described

_netrc/.netrc alternative to cURL

六眼飞鱼酱① 提交于 2019-11-28 10:08:50
I've been looking at Git and cURL and I found some references about .netrc, that may help on HTTP authentication. The problem is: .netrc is dumb, because it stores passwords in plain text format, which is a big security issue for the solution I'm developing. Is there an alternative to the .netrc approach? Is it possible to develop an "authentication backend" to cURL? VonC Update April 2013, git 1.8.3 : A new read-only credential helper (in contrib/ ) to interact with the .netrc/.authinfo files has been added. That script would allow you to use gpg-encrypted netrc files , avoiding the issue of

_netrc/.netrc alternative to cURL

吃可爱长大的小学妹 提交于 2019-11-27 03:26:14
问题 I've been looking at Git and cURL and I found some references about .netrc, that may help on HTTP authentication. The problem is: .netrc is dumb, because it stores passwords in plain text format, which is a big security issue for the solution I'm developing. Is there an alternative to the .netrc approach? Is it possible to develop an "authentication backend" to cURL? 回答1: Update April 2013, git 1.8.3: A new read-only credential helper (in contrib/ ) to interact with the .netrc/.authinfo files