作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试连接到 Bitbucket 服务器。我的机器有 Windows,有 Git Bash。
上 /h/.ssh/id_rsa
和 /h/.ssh/id_rsa.pub
,我有存储库的 key 。
也在 /h/.ssh/config
,我有存储库的配置:
Host my-repo-name
User my-user
Hostname my-repo.com
Port 7999
IdentityFile id_rsa
ssh -Tv git@my-repo.com
OpenSSH_7.1p2, OpenSSL 1.0.2h 3 May 2016
debug1: Reading configuration data /h//.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to my-repo.com port 22.
debug1: Connection established.
debug1: identity file /h/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
/h/.ssh/id_rsa
和
/h/.ssh/id_rsa.pub
,为什么我会收到
key_load_public: No such file or directory
?
Port 7999
,为什么它连接到端口 22
Connecting to my-repo.com port 22
?
最佳答案
- If I have /h/.ssh/id_rsa and /h/.ssh/id_rsa.pub, why am I getting key_load_public: No such file or directory?
-vvv
.
- If in the configuration I specify Port 7999, why does it connect to port 22 Connecting to my-repo.com port 22?
Port 7999
仅针对主机
my-repo-name
进行隔离,不适用于
my-repo.com
您尝试连接的位置。如果你跑,它会被使用
ssh -Tv git@my-repo-name
关于git - key_load_public : No such file or directory even though file exists,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42906366/
我是一名优秀的程序员,十分优秀!