![](/img/trans.png)
[英]SSH to remote Windows machine using username and password through shell script
[英]How to git push to a remote windows machine using ssh
当我尝试从本地存储库推送到远程 windows 机器时,使用以下命令:
git push ssh://username@ip_address:/C/Users/username/project.git master
输入凭据后,我收到此错误:
致命:''/c/Users/username/project.git'' 似乎不是 git 存储库
致命:无法从远程存储库中读取。
似乎/C/Users/username/project.git
必须替换为C:/Users/username/project.git
(之前没有“/我得到另一个 C 错误”之前询问凭据时尝试此变体) :
ssh: 无法解析主机名 ip_address:C:: 名称或服务未知
SSH URL 中的任何“:”都会使 SSH 将其解释为SCP 语法
实际的 URI 如注释ssh://username@ip_address/C/Users/username/project.git
确保检查此处使用的路径的大小写(小写/大写)。
也尝试使用/c/...
与/C/...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.