Searching google cho +github +ssh "no address associated with name"
cho các câu hỏi sau SO là 4 kết quả đầu:"không có địa chỉ gắn liền với cái tên" lỗi khi nhân bản repo github.com của hệ điều hành Windows sử dụng ssh
github no address associated with name
Github push origin master not working
Syncing with github
GITHUB setup - no address associated with name
Không ai trong số họ đưa ra câu trả lời cho vấn đề của tôi.
c:\Program Files (x86)\Git\bin>git --version
git version 1.7.7.1.msysgit.0
c:\Program Files (x86)\Git\bin>ssh [email protected]
Enter passphrase for key '/c/Users/Piotr/.ssh/id_rsa':
Hi piotr-dobrogost! You've successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.
c:\Program Files (x86)\Git\bin>git clone ssh://[email protected]:piotr-dobrogost/requests.git
Cloning into requests...
ssh: github.com:piotr-dobrogost: no address associated with name
fatal: The remote end hung up unexpectedly
Tôi đoán vấn đề là do git qua github.com:piotr-dobrogost
như hostname để ssh thay vì chỉ github.com
chỉ. Tại sao git làm điều này và giải pháp là gì?
Không được có dấu hai chấm sau github.com, mà là đường dẫn (tương ứng với tài khoản người dùng git hoặc đường dẫn tuyệt đối). Vì vậy, bạn đã thử 'git clone ssh: // git @ github.com/piotr-dobrogost/requests.git' hoạt động tốt hơn? Hoặc 'git clone ssh: // git @ github.com/home/piotr-dobrogost/requests.git'? – VonC
'git clone ssh: // git @ github.com/piotr-dobrogost/requests.git' hoạt động và' git clone ssh: // git @ github.com/home/piotr-dobrogost/requests.git' kết quả trong ' L ERI: Lỗi không tìm thấy kho lưu trữ.'. Tuy nhiên, url với dấu hai chấm được đưa ra bởi github là * chính thức *. Tại sao nó không hoạt động? –