mux_client_request_session: session request failed: Session open refused by peer

和自甴很熟 提交于 2020-01-04 06:49:08

问题


I use bitbucket to host some git repositories.

When I try to do:

git pull && git push

I get:

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

回答1:


bitbucket.org has intentionally disabled ssh multiplexing, so edit your ~.ssh/config file so ssh doesn't try to multiplex when connecting to it.

If you have ControlMaster at the top level of config, make sure it is removed as it supersedes any Host section configuration.

Then add:

Host bitbucket.???  # .org and .com
  ControlMaster no

Host *
  ControlMaster auto
  ControlPersist yes
  ControlPath ~/.ssh/socket-%r@%h:%p

Note that Host bitbucket.org must come before Host *.

Also, the ControlPath should only be writable by yourself.

Then, if the ControlSocket named in the error message is still there, delete it. (It will auto-delete based upon the timeout in ControlPersist.



来源:https://stackoverflow.com/questions/52496020/mux-client-request-session-session-request-failed-session-open-refused-by-peer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!