Skip to content
Permalink
Browse files
bug fix: adding remote destinations
  • Loading branch information
usmannasir committed May 16, 2020
1 parent 02da286 commit 8a2b2e43e79277d3aa8681cb2c9dabd9d3570589
Showing 1 changed file with 3 additions and 3 deletions.
@@ -963,21 +963,21 @@ def sendKey(IPAddress, password, port='22', user='root'):

except pexpect.TIMEOUT as msg:

command = 'chmod 644 %s' % ('/root/.ssh/cyberpanel')
command = 'chmod 644 %s' % ('/root/.ssh/cyberpanel.pub')
ProcessUtilities.executioner(command)

logging.CyberCPLogFileWriter.writeToFile(str(msg) + " [sendKey]")
return [0, "TIMEOUT [sendKey]"]
except pexpect.EOF as msg:

command = 'chmod 644 %s' % ('/root/.ssh/cyberpanel')
command = 'chmod 644 %s' % ('/root/.ssh/cyberpanel.pub')
ProcessUtilities.executioner(command)

logging.CyberCPLogFileWriter.writeToFile(str(msg) + " [sendKey]")
return [0, "EOF [sendKey]"]
except BaseException as msg:

command = 'chmod 644 %s' % ('/root/.ssh/cyberpanel')
command = 'chmod 644 %s' % ('/root/.ssh/cyberpanel.pub')
ProcessUtilities.executioner(command)

logging.CyberCPLogFileWriter.writeToFile(str(msg) + " [sendKey]")

0 comments on commit 8a2b2e4

Please sign in to comment.