Tom*_*ale 5 git ssh bitbucket ssh-config
我使用 bitbucket 来托管一些 git 存储库。
当我尝试做:
git pull && git push
Run Code Online (Sandbox Code Playgroud)
我得到:
mux_client_request_session: session request failed: Session open refused by peer
ControlSocket /home/ravi/.ssh/sockets/socket-git@bitbucket.org:22 already exists, disabling multiplexing
Run Code Online (Sandbox Code Playgroud)
bitbucket.org 有意禁用了 ssh 多路复用,因此请编辑您的~.ssh/config文件,以便 ssh 在连接到它时不会尝试多路复用。
如果您有ControlMaster顶级配置,请确保将其删除,因为它会取代任何Host部分配置。
然后加:
Host bitbucket.??? # .org and .com
ControlMaster no
Host *
ControlMaster auto
ControlPersist yes
ControlPath ~/.ssh/socket-%r@%h:%p
Run Code Online (Sandbox Code Playgroud)
注意Host bitbucket.org一定要先来Host *。
此外,ControlPath应该只能由您自己写。
然后,如果ControlSocket错误消息中的命名仍然存在,请将其删除。(它将根据ControlPersist.
| 归档时间: |
|
| 查看次数: |
3501 次 |
| 最近记录: |