Reputation: 5425
Each time I run a command like this
ssh [email protected]
I've to type in the ssh password.
Each time I run a command like this
git push origin master
(pushing code to github)
I've to type in the github password.
Is there any bash thing to write these password inline with the command?
I mean something like
git push origin master < 'mypass'
or
git push origin master | 'mypass'
Upvotes: 0
Views: 234
Reputation: 15363
Use public key authentication for git hub.
For ssh-ing to the host add your key to the host's authorized_keys file(default location is the /home/<user>
/.ssh directory of the user you are logging in as).
If the daemon is configured correctly it will simple use your key to authenticate before it prompts for a password.
Upvotes: 1