[英]Clone git repo not working in vscode although git command succeeds (SSH)
嘗試從私有 Linux 主機(SSH / 客戶端 RSA 密鑰)克隆 Windows vscode 中的 git 存儲庫
什么是好的:
git clone ssh://gituser@...
(密碼請求)問題:
主機 sshd 日志:
...
debug1: userauth-request for user gituser service ssh-connection method publickey [preauth]
debug1: attempt 1 failures 0 [preauth]
debug1: userauth_pubkey: test whether pkalg/pkblob are acceptable for RSA SHA256:DlTkOFDZK... [preauth]
debug1: temporarily_use_uid: 1033/100 (e=0/0)
debug1: trying public key file /var/services/homes/gituser/.ssh/authorized_keys
debug1: fd 4 clearing O_NONBLOCK
debug1: matching key found: file /var/services/homes/gituser/.ssh/authorized_keys, line 1 RSA SHA256:DlTkOFDZK...
debug1: restore_uid: 0/0
Postponed publickey for gituser from 192.168.1.132 port 5xxx1 ssh2 [preauth]
debug1: userauth-request for user gituser service ssh-connection method password [preauth]
debug1: attempt 2 failures 0 [preauth]
debug1: PAM: password authentication failed for gituser: Permission denied
Failed none for gituser from 192.168.1.132 port 5xxx1 ssh2: RSA SHA256:DlTkOFDZK...
debug1: userauth-request for user gituser service ssh-connection method password [preauth]
debug1: attempt 3 failures 1 [preauth]
debug1: PAM: password authentication failed for gituser: Permission denied
Failed password for gituser from 192.168.1.132 port 5xxx1 ssh2
debug1: Unable to open the btmp file /var/log/btmp: No such file or directory
...
從克隆工作的 CMD 中,鍵入
set "GIT_SSH_COMMAND=ssh -Tv"
"%LOCALAPPDATA%\Programs\Microsoft VS Code\bin\code.cmd"
從那里,再次嘗試克隆,這次檢查新的 VSCode 會話中實際使用的 SSH 密鑰。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.