我正在制作一个自动克隆git仓库的批处理文件。在批处理文件中,我添加了以下代码:
git clone ssh://user@address/path
但是它的执行方式打动了我:
[exec] Permission denied, please try again.
[exec] Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
[exec] fatal: Could not read from remote repository.
因为需要输入密码。 我尝试将命令更改为
git clone ssh://user:password@address/path
但是它仍然要求我输入密码。
有什么建议吗?