2015-09-21 7 views
6

यदि KexAlgorithms एक एसएसएच कॉन्फ़िगरेशन फ़ाइल में स्पष्ट रूप से कॉन्फ़िगर नहीं किया गया है, तो डिफ़ॉल्ट कुंजी एक्सचेंज एल्गोरिदम openssh का उपयोग क्या हो सकता है?openssh डिफ़ॉल्ट kexalgorithms क्या है?

अधिभारित संस्करण मैं उपयोग कर रहा हूँ OpenSSH_6.4p1 है।

उत्तर

11

आगे की जांच के बाद, इस जानकारी को दो तरीके से मिला जा सकता है।

  1. के लिए sshd_config(5)

    KexAlgorithms 
    Specifies the available KEX (Key Exchange) algorithms. 
    Multiple algorithms must be comma-separated. 
    The default is 
    ecdh-sha2-nistp256 , 
    ecdh-sha2-nistp384 , 
    ecdh-sha2-nistp521 , 
    diffie-hellman-group-exchange-sha256 , 
    diffie-hellman-group-exchange-sha1 , 
    diffie-hellman-group14-sha1 , 
    diffie-hellman-group1-sha1 . 
    
  2. ssh -vvv लॉग से पढ़ने आदमी पेज से पढ़ा (पहला भाग kexalgorithm,hmac,ciphers ग्राहक के पक्ष में समर्थन किया है,। दूसरे भाग sshd सर्वर है)

    debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 
    debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],[email protected],ssh-rsa,ssh-dss 
    debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected] 
    debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected] 
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96 
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96 
    debug2: kex_parse_kexinit: none,[email protected],zlib 
    debug2: kex_parse_kexinit: none,[email protected],zlib 
    debug2: kex_parse_kexinit: 
    debug2: kex_parse_kexinit: 
    debug2: kex_parse_kexinit: first_kex_follows 0 
    debug2: kex_parse_kexinit: reserved 0 
    debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 
    debug2: kex_parse_kexinit: ssh-rsa 
    debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,aes192-cbc,aes256-cbc,arcfour256,arcfour128,3des-cbc,blowfish-cbc,cast128-cbc,arcfour 
    debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,aes192-cbc,aes256-cbc,arcfour256,arcfour128,3des-cbc,blowfish-cbc,cast128-cbc,arcfour 
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-ripemd160,hmac-sha1-96,hmac-md5-96,hmac-sha2-256,hmac-sha2-512 
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-ripemd160,hmac-sha1-96,hmac-md5-96,hmac-sha2-256,hmac-sha2-512 
    debug2: kex_parse_kexinit: none,[email protected] 
    debug2: kex_parse_kexinit: none,[email protected] 
    
    समर्थित एल्गोरिदम के लिए
  3. क्वेरी ssh: ssh -Q kex server (अपरकेस -Q)

    diffie-hellman-group1-sha1 
    diffie-hellman-group14-sha1 
    diffie-hellman-group-exchange-sha1 
    diffie-hellman-group-exchange-sha256 
    ecdh-sha2-nistp256 
    ecdh-sha2-nistp384 
    ecdh-sha2-nistp521 
    diffie-hellman-group1-sha1 
    [email protected] 
    
+4

मुझे लगता है कि होना चाहिए 'ssh -Q kex server' (अपर केस 'क्यू') – trvrm

+1

' ssh -Q kex server' कोई वास्तविक आदेश नहीं है। 'ssh -Q kex' बस ssh क्लाइंट के एल्गोरिदम पूछताछ करता है। इसमें कोई सर्वर शामिल नहीं है - तर्क को अनदेखा किया जा रहा है - 'ssh -Q kex asdf' आज़माएं। – bain

संबंधित मुद्दे