.netrc

How do I add multiple accounts (machine, login, password) to my VIM .netrc file?

梦想的初衷 提交于 2019-12-12 00:37:41
问题 I have been just connecting to one server via .netrc and it worked fine but now I need to be able to connect the original server and a new account. When I add new account information ( machine , login , password ) it just signs into the original account that comes first in the .netrc file. So right now my VIM .netrc file looks like this: machine oldsite.com login old_username password oldpassword machine newsite.com login new_username password new_password How can I make VIM/.netrc ask me

How to configure GIT on Windows 7 to push project to Google Code

若如初见. 提交于 2019-12-10 11:42:24
问题 I would like to push my project to Google Code. I created a new project, in tab Source I have got few instructions how to push my local code. I work on Windows 7, so I created a directory C:\googlecode and I put there file _netrc and inside machine code.google.com login myloginhere@gmail.com password MySecretCodeHere After that I added new System Variable(sorry, I use non-english version of Windows) HOME I clicked OK, OK. Following the instructions, I cloned this repo: git clone https://path

Specify password to sftp in a Bash script [duplicate]

折月煮酒 提交于 2019-12-09 16:12:16
问题 This question already has answers here : How to run the sftp command with a password from Bash script? (9 answers) Closed 4 years ago . 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

Git .netrc file authentication issue

混江龙づ霸主 提交于 2019-12-05 04:55:21
问题 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? 回答1: The ~/.netrc (or %HOME%\_netrc on Windows) file isn't enough. You would need to copy the git-credential-netrc file anywhere in