2017-11-14 7 views
1

私はビットバケットで私のgit repoにプッシュできません。 私のURLが正しく設定されています。私はアカウントにsshキーを持っており、アクセス権は問題ありません。致命的:リモートリポジトリから読み取れませんでした。静的マシンログインのため

私はssh -vvv [email protected]を実行したときに、私は次の出力を持っている:

debug2: channel 0: input open -> closed 
debug3: channel 0: will not send data after close 
logged in as servandoavila1. 

You can use git or hg to connect to Bitbucket. Shell access is disabled. 
debug3: channel 0: will not send data after close 
debug2: channel 0: obuf empty 
debug2: channel 0: close_write 
debug2: channel 0: output drain -> closed 
debug2: channel 0: almost dead 
debug2: channel 0: gc: notify user 
debug2: channel 0: gc: user detached 
debug2: channel 0: send close 
debug3: send packet: type 97 
debug2: channel 0: is dead 
debug2: channel 0: garbage collecting 
debug1: channel 0: free: client-session, nchannels 1 
debug3: channel 0: status: The following connections are open: 
    #0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1) 

debug3: send packet: type 1 
Connection to bitbucket.com closed. 
Transferred: sent 3508, received 1836 bytes, in 0.2 seconds 
Bytes per second: sent 22807.7, received 11937.0 
debug1: Exit status 0 

その後

[email protected]:~/projects/foodtruck-remake$ git push 
repository access denied. 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 

私がまだマシン上で私の友人、servandoavila1としてログインしていそうです。しかし、私は最近gitのグローバルuser.email/user.nameを修正しました。このレポをどのようにプッシュできますか?ありがとうございます

+0

がエラーを参照するのではなく、ユーザー名を使用するように更新します。あなたはbitbucketにsshすることはできません。 Yuoはgitを使うことができます。 'git push ...'を試してみるとどういうエラーですか? –

+0

良い点、おい... – codyc4321

答えて

1

ssh -vvv [email protected](nit:use .org)から投稿された出力は、あなたがあなたの友人として認証していることを示しています。 git committerの名前と電子メールは、gitの内部トラッキングメカニズムのためのもので、リモートシステムへの認証ではありませんので、あなたはまだ友人としてプッシュしようとしています - そして、そのレポにアクセスできないようです。

あなたはここでカップルのオプションがあります。

  1. は、あなたの友人が
  2. は、そのシステム上の別のSSH鍵ペアを設定することをレポへの書き込みアクセスを与えます。それをあなたのBitbucketユーザーに関連付けます。そして、あなたのgitのリモコンは、あなたの友人のか(例えばgit remote set-url origin [email protected]:owner/repo.git)「gitの」(例えばgit remote set-url origin https://[email protected]/owner/repo.git
  3. 使用HTTPS
+0

あなたは素晴らしいレッドモンドです。#2は私が最初に試したものでした。ありがとうございました – codyc4321

関連する問題