|
|
@ -144,11 +144,9 @@ class IndexHandler(tornado.web.RequestHandler):
|
|
|
|
or self.get_specific_pkey(paramiko.ECDSAKey, privatekey, password)\
|
|
|
|
or self.get_specific_pkey(paramiko.ECDSAKey, privatekey, password)\
|
|
|
|
or self.get_specific_pkey(paramiko.Ed25519Key, privatekey,
|
|
|
|
or self.get_specific_pkey(paramiko.Ed25519Key, privatekey,
|
|
|
|
password)
|
|
|
|
password)
|
|
|
|
|
|
|
|
|
|
|
|
if not pkey:
|
|
|
|
if not pkey:
|
|
|
|
raise ValueError('Wrong password for decrypting the private key'
|
|
|
|
raise ValueError('Not a valid private key file or '
|
|
|
|
' or the private key is not valid.')
|
|
|
|
'wrong password for decrypting the private key.')
|
|
|
|
|
|
|
|
|
|
|
|
return pkey
|
|
|
|
return pkey
|
|
|
|
|
|
|
|
|
|
|
|
def get_port(self):
|
|
|
|
def get_port(self):
|
|
|
|