authentication - Include .pem for git pull / push -
i keep git server on amazon ec2, , in order push or pull need run ssh-add ~/.ssh/pem/me.pem. there way add .pem file git config such won't have run ssh-add each time? i'm thinking of configuration file in similar vein ~/.ssh/config lets users configure such option (identityfile ~/.ssh/pem/me.pem).
in fit of inspiration after posting, added following ~/.ssh/config:
host someserver hostname 1.2.3.4 user ubuntu identityfile ~/.ssh/pem/me.pem and cloned git repo such:
git clone ssh://someserver/opt/git/somerepo.git this has terrific effect of including .pem file needed.
Comments
Post a Comment