1
我在Amazon EC2上保留一个Git服务器,并且为了push
或pull
它,我需要运行ssh-add ~/.ssh/pem/Me.pem
。有什么办法可以将这个.pem
文件添加到Git配置中,这样我就不必每次运行ssh-add
?我正在考虑一个类似于~/.ssh/config
的配置文件,它允许用户配置这样一个选项(IdentityFile ~/.ssh/pem/Me.pem
)。包括.pem for git pull/push
伟大的解决方案。 scp-style someServer:/opt/git/someRepo.git URI语法对于那些喜欢它的人来说仍然适用。 –