GitでSSH秘密鍵を指定してcloneする
.ssh/config
でHostを設定した上で、
Host foo HostName 12.34.56.789 Port 2222 User bar IdentityFile path/to/secret_key
そのHost名を指定してcloneする。
git clone ssh://bar@foo/path/to/repos.git
.ssh/config
でHostを設定した上で、
Host foo HostName 12.34.56.789 Port 2222 User bar IdentityFile path/to/secret_key
そのHost名を指定してcloneする。
git clone ssh://bar@foo/path/to/repos.git