相关疑难解决方法(0)

多个GitHub帐户和SSH配置

我在使用两个不同的SSH密钥/ GitHub帐户以便一起玩时遇到一些麻烦.我有以下设置:

Repos可从一个帐户使用 git@github.com:accountname

Repos可从其他帐户使用 git@github.com:anotheraccount

每个帐户都有自己的SSH密钥.已添加两个SSH密钥,我已创建配置文件.我不相信配置文件是正确的.我不太确定如何指定使用的repos git@github.com:accountname应该使用id_rsa并且git@github.com:anotheraccount应该使用id_rsa_anotheraccount.

ssh github ssh-keys

242
推荐指数
9
解决办法
10万
查看次数

试图推送到BitBucket,但我得到"主conq:存储库访问被拒绝." "致命:远程端意外挂断"

我这样做是为了推动我的bitbucket存储库的更改:

$: git push origin 
master conq: repository access denied. 
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)

这个错误意味着什么,我该如何解决?

bitbucket的调试信息: ssh -T -v git@bitbucket.org

OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to bitbucket.org [131.103.20.167] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/identity-cert type -1
debug1: identity file /root/.ssh/id_rsa type 1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa …
Run Code Online (Sandbox Code Playgroud)

git bitbucket

19
推荐指数
2
解决办法
2万
查看次数

标签 统计

bitbucket ×1

git ×1

github ×1

ssh ×1

ssh-keys ×1