2016-03-21 24 views
0

Görünüşe göre, şu anda bulunduğum yer olan İran'dan gelen bitbucket'e erişme konusunda bazı sıkıntılar var. Bu, hem git iş akışlarını hem de web sitelerini ilgilendirir. Bu sansür değildir, çünkü sansür sayfa çıktısını "gerçek sansür" ile değiştirir. Burada, sadece zaman aşımı alma ve aşağıdaki Ben çekmeye çalıştığınızda ediyorum:Git (bitbucket): Ssh tünelini mevcut depoya taşıyın

ssh: connect to host bitbucket.org port 22: Operation timed out 
fatal: Could not read from remote repository. 

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

ben ping ve ssh yapabilirsiniz Avrupa'da başka bir bilgisayar var, bu yüzden o birinden çekerek düşündük. Mac OS'de çalışıyorum. .git/config gidip

url = [email protected]:3333/project.git 

Ancak, ben

olsun yerine

  • Açık bir terminal penceresi ve

    ssh -L 3333:bitbucket.org:22 [email protected] -N 
    
  • Açık başka bir terminal penceresi ve: Aşağıdaki çalıştı

    ssh: connect to host localhost port 22: Connection refused 
    fatal: Could not read from remote repository. 
    
    Please make sure you have the correct access rights 
    and the repository exists. 
    

    Gerçekten korkunç bir internetin gerisinde olduğum için, projeyi sıfırdan klonlamak değil, yerel olarak zaten sahip olduğum deposu kullanarak güncellemek önemlidir.

    Ne olursa olsun için

    - bu bir hata ayıklama komut ise, burada Yorumcu'nın komutundan çıktı: Sen potansiyel ~/.ssh/config aşağıdaki ekleme gibi bir şey için gidebiliriz

    $ ssh -vvv [email protected] 
    OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 
    debug1: Reading configuration data /etc/ssh_config 
    debug1: /etc/ssh_config line 20: Applying options for * 
    debug1: /etc/ssh_config line 102: Applying options for * 
    debug2: ssh_connect: needpriv 0 
    debug1: Connecting to bitbucket.org [104.192.143.2] port 22. 
    debug1: connect to address 104.192.143.2 port 22: Operation timed out 
    
+0

'ssh -vvv bitbucket.org' veya daha doğrusu' ssh -vvv git @ bitbucket.org'. – Jakuje

+0

@Jakuje Üzgünüz, bununla ne yapmam gerektiğini anlamadım. Bu bir hata ayıklama komutu mu, yoksa bunu .git/config içine mi koymalıyım? – FooBar

+3

ssh tüneli, localhost'unuzu sadece tünelleştirir: ssh-host'unuza 3333 portu: 22 port, bitbucket.org'a değil. Avrupa'da kendi sunucunuzda bir deponuz olmadığı için, bundan klonlayamazsınız. Önce sunucunuzdaki bitbucket repo'yu yansıtabilir ve daha sonra klonlayabilirsiniz. –

cevap

0

Host bitbucket 
HostName bitbucket.org 
ProxyCommand ssh [email protected] nc %h %p 

sonra sadece yerel konak kullanımından bu:

[email protected]/project.git

+0

Bu beni ölümcül bırakıyor: ''[email protected]/project.git' bir git deposu öldürücü olarak görünmüyor: Uzak depodan okunamadı. ' – FooBar

İlgili konular