2015-04-20 6 views
6

कपड़े पाइथन एपीआई चल रहा है और 'घातक त्रुटि: होस्ट' ए-स्टोर 1 'पर असंगत एसएसएच पीयर (कोई स्वीकार्य केएक्स एल्गोरिदम)' नहीं है लेकिन 'rack1-app1' पर ठीक काम करता है '। केवल अंतर जो मैं देख सकता हूं वह है कि 'rack1-app1' चल रहा है openssl 1.0.1-4ubuntu5.3 और 'a-stor1' 1.0.1-4ubuntu5.21 चल रहा है।घातक त्रुटि: असंगत एसएसएच पीयर (कोई स्वीकार्य केएक्स एल्गोरिदम)

Brians-MacBook-Pro:initial bohalloran$ python tests/test_fabric.py 
[rack1-app1] Executing task 'testIt' 
[rack1-app1] run: uptime 
[rack1-app1] out: 13:07:43 up 24 days, 19:18, 1 user, load average: 0.07, 0.05, 0.05 
[rack1-app1] out: 

[a-stor1] Executing task 'testIt' 
[a-stor1] run: uptime 
ERROR:paramiko.transport:Exception: Incompatible ssh peer (no acceptable kex algorithm) 
ERROR:paramiko.transport:Traceback (most recent call last): 
ERROR:paramiko.transport: File "/Library/Python/2.7/site-packages/paramiko/transport.py", line 1614, in run 
ERROR:paramiko.transport: self._handler_tableptype 
ERROR:paramiko.transport: File "/Library/Python/2.7/site-packages/paramiko/transport.py", line 1694, in _negotiate_keys 
ERROR:paramiko.transport: self._parse_kex_init(m) 
ERROR:paramiko.transport: File "/Library/Python/2.7/site-packages/paramiko/transport.py", line 1809, in _parse_kex_init 
ERROR:paramiko.transport: raise SSHException('Incompatible ssh peer (no acceptable kex algorithm)') 
ERROR:paramiko.transport:SSHException: Incompatible ssh peer (no acceptable kex algorithm) 
ERROR:paramiko.transport: 

Fatal error: Incompatible ssh peer (no acceptable kex algorithm) 

Underlying exception: 
Incompatible ssh peer (no acceptable kex algorithm) 

Aborting. 
Incompatible ssh peer (no acceptable kex algorithm) 

Underlying exception: 
Incompatible ssh peer (no acceptable kex algorithm) 
Brians-MacBook-Pro:initial bohalloran$ cat tests/test_fabric.py 
from fabric.api import env, run, prefix, hide, settings 
from fabric import tasks 
import logging 

env.hosts = ['rack1-app1', 'a-stor1'] 
env.user = 'storiant' 
env.password = 'ST0r!ant' 

logging.basicConfig() 

cmd = 'uptime' 

def main(): 
tasks.execute(testIt) 

def testIt(): 
with settings(warn_only = True): 
run(cmd) 

if name == "main": 
main() 
Brians-MacBook-Pro:initial bohalloran$ 

Brians-MacBook-Pro:initial bohalloran$ python 
Python 2.7.6 (default, Sep 9 2014, 15:04:36) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin 
Type "help", "copyright", "credits" or "license" for more information. 

import paramiko 
print paramiko.version 
1.15.2 
^D 
Brians-MacBook-Pro:initial bohalloran$ 
Brians-MacBook-Pro:initial bohalloran$ openssl version 
OpenSSL 0.9.8zd 8 Jan 2015 
Brians-MacBook-Pro:initial bohalloran$ 

[email protected]:~$ openssl version 
OpenSSL 1.0.1 14 Mar 2012 
[email protected]:~$ 

[email protected]:~$ openssl version 
OpenSSL 1.0.1 14 Mar 2012 
[email protected]:~$ 

[email protected]:~$ dpkg -l | grep libgnutls 
ii libgnutls26 2.12.14-5ubuntu3.1 GNU TLS library - runtime library 
[email protected]:~$ dpkg -l | grep openssl 
ii libevent-openssl-2.0-5 2.0.16-stable-1ubuntu0.1 Asynchronous event notification library (openssl) 
ii openssl 1.0.1-4ubuntu5.21 Secure Socket Layer (SSL) binary and related cryptographic tools 
[email protected]:~$ 

[email protected]:~$ dpkg -l | grep libgnutls 
ii libgnutls26 2.12.14-5ubuntu3.1 GNU TLS library - runtime library 
[email protected]:~$ dpkg -l | grep openssl 
ii libevent-openssl-2.0-5 2.0.16-stable-1 Asynchronous event notification library (openssl) 
ii openssl 1.0.1-4ubuntu5.3 Secure Socket Layer (SSL) binary and related cryptographic tools 
[email protected]:~$ 

[email protected]:~$ uname -a 
Linux Rack1-app1 3.2.0-58-generiC#88-Ubuntu SMP Tue Dec 3 17:37:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux 
[email protected]:~$ 

[email protected]:~$ uname -a 
Linux a-stor1 3.2.0-58-generiC#88-Ubuntu SMP Tue Dec 3 17:37:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux 
[email protected]:~$ 
+0

स्टैक ओवरफ़्लो है प्रोग्रामिंग और विकास के सवालों के लिए साइट। यह प्रश्न ऑफ़-विषय प्रतीत होता है क्योंकि यह प्रोग्रामिंग या विकास के बारे में नहीं है। सहायता केंद्र में [मैं यहां कौन से विषय पूछ सकता हूं] (http://stackoverflow.com/help/on-topic) देखें। शायद [सुपर उपयोगकर्ता] (http://superuser.com/) या [यूनिक्स और लिनक्स स्टैक एक्सचेंज] (http://unix.stackexchange.com/) पूछने के लिए एक बेहतर जगह होगी। यह भी देखें [मैं देव ओप्स के बारे में प्रश्न कहां पोस्ट करूं?] (Http://meta.stackexchange.com/q/134306)। – jww

+0

उस उत्तर की जांच करें http://stackoverflow.com/a/32691055/524743 – Samuel

उत्तर

-2
  1. डाउनलोड अजगर-paramiko_1.15.1-1_all.deb (v1.15.1 और ऊपर)
  2. dpkg मैं अजगर-paramiko_1.15.1-1_all.deb
  3. यदि उपरोक्त स्थापना संकेतों नीचे त्रुटि - "पायथन-पैरामीको पाइथन-एर्डासा पर निर्भर करता है; हालांकि: पैकेज पायथन-एर्डासा स्थापित नहीं है।"

    फिर, नीचे का पालन करते हुए ECDSA स्थापित

  4. डाउनलोड ECDSA-0.13.tar.gz (ECDSA के नवीनतम संस्करण)
  5. अनटार ECDSA-0.13.tar.gz कदम
  6. सीडी ECDSA-0.13
  7. एक
  8. अजगर setup.py
7

उन्नयन कपड़े स्थापित मेरे लिए समस्या तय (pip --upgrade fabric)

+4

मुझे लगता है कि कमांड वास्तव में 'पाइप इंस्टॉल - अपग्रेड फैब्रिक' है – Kirkman14

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