version control - Can I specify private key in git config? -
i want use separate private key single git repository.
i don't have access home directory or can't set env variables well.
is there can specify in .git/config
because can chnage .git/config use ssh instead of https. have hardcoded user:pass in url of config file
one option use authentication agent forwarding when logging remote machine run git commands. here's guide setting up.
an authentication agent (usually ssh-agent
) store keys in memory don't have keep typing in password. authentication agent forwarding when remote machine allowed use agent. when ssh
machine forwarding, can ssh
again there if had keys of local machine.
it's handy , avoids need copy private keys on place.
Comments
Post a Comment