【发布时间】:2021-10-21 00:15:46
【问题描述】:
所以我在 Windows 10 上,不久前我决定使用 WSL,这样我就可以获得 zsh。但是,现在我不能再从我的 wsl 终端使用 git,即我不能再从远程 repo 中使用git pull。当我尝试时,我得到以下...
'C:\Windows\System32\OpenSSH\ssh.exe': 1: C:\Windows\System32\OpenSSH\ssh.exe: not found
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
此类操作在 bash 和 GitHub Desktop 中运行良好。为什么 WSL 尝试从 Windows 使用 OpenSSH 应该是 Linux 吧?
我正在努力寻找有关此问题的信息,因此非常感谢任何帮助。如果我可以提供更多信息,请告诉我。
【问题讨论】:
-
whereis ssh(在 WSL 中)的输出是什么? -
我很惊讶 WSL 没有自带原生 ssh 和 git 实现。我还没有尝试过 WSL,但如果可以在 WSL 中安装 Git,我会尝试。
-
whereis ssh输出ssh: /usr/bin/ssh /etc/ssh /mnt/c/WINDOWS/System32/OpenSSH/ssh.exe /usr/share/man/man1/ssh.1.gz我在 WSL 中有可用的 Git,但我无法从远程仓库中提取
标签: windows git ssh windows-subsystem-for-linux