SORU
22 AĞUSTOS 2011, PAZARTESİ


SSH hata Git: "ana bilgisayara Bağlanmak: dosya numarası"Kötü

git guide takip ettim ama github bağlanmaya çalışırken garip bir sorun var:

$ ssh -v git@github.com
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Reading configuration data /c/Documents and Settings/mugues/.ssh/config
debug1: Applying options for github.com
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: connect to address 207.97.227.239 port 22: Attempt to connect timed out without establishing a connection
ssh: connect to host github.com port 22: Bad file number

Bu benim config dosyası altında .ssh

Host github.com
    User git
    Hostname github.com
    PreferredAuthentications publickey
    IdentityFile "C:\Documents and Settings\mugues\.ssh\id_rsa"
    TCPKeepAlive yes
    IdentitiesOnly yes

Herhangi bir fikir?

Saygılarımızla Massimo

CEVAP
5 Kasım 2011, CUMARTESİ


Bu sorun olduktan sonra kendimi benim için çalışan bir çözüm bulundu.

Hata iletisi:

    ssh -v git@github.com
    OpenSSH_5.8p1, OpenSSL 1.0.0d 8 Feb 2011
    debug1: Connecting to github.com [207.97.227.239] port 22.
    debug1: connect to address 207.97.227.239 port 22: Connection timed out
    ssh: connect to host github.com port 22: Connection timed out
    ssh: connect to host github.com port 22: Bad file number

Sadece hatalı dosya numarasını mesaj windows MİNGGW kabuğu kullanarak göreceksiniz. Linux kullanıcıları sadece zaman aşımına Uğradı.

Sorun:

Muhtemelen SSH port 22 engellenir. Yazarak bunu görebilirsiniz

    $nmap -sS github.com -p 22
    Starting Nmap 5.35DC1 ( http://nmap.org ) at 2011-11-05 10:53 CET
    Nmap scan report for github.com (207.97.227.239)
    Host is up (0.10s latency).
    PORT   STATE    SERVICE
    22/tcp ***filtered*** ssh

    Nmap done: 1 IP address (1 host up) scanned in 2.63 seconds

Gördüğünüz gibi devlet bir şey onu engelliyor demektir Süzülmüş. 443 numaralı bağlantı noktası (/ISS alışkanlık güvenlik duvarı Bu blok) için bir SSH yaparak bu sorunu çözebilirsiniz. Ne "yerine github.com.ssh.github.com ssh gerekir o da önemli Başka ssh server yerine Web sunucusu için rapor. Tüm adımlar bu sorunu çözmek için gerekli olan aşağıda.

Çözüm:

(Öncelikle anahtarları ** 13) açıklandığı gibi oluşturulan emin olun

dosya ~/oluşturun.ssh/config (ssh yapılandırma dosyası kullanıcı dizininizde bulunan. Windows muhtemelen c:\users\username\.ssh\config

Aşağıdaki kodları yapıştırın:

    Host github.com
    User git
    Hostname ssh.github.com
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/id_rsa
    Port 443

Dosyayı kaydedin.

Her zamanki gibi ssh gerçekleştirin

$ssh -T github.com 
    $Enter passphrase for key '.......... (you can smile now :))

Kullanıcı adı ne de port numarasını kaynağı olmak istemiyorum unutmayın.

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • BumbleDroid

    BumbleDroid

    18 EKİM 2010
  • isupportthegosselins

    isupporttheg

    6 Aralık 2009
  • Tube Time

    Tube Time

    14 Mayıs 2013