Skip to content

Commit 8a2b2e4

Browse files
committed
bug fix: adding remote destinations
1 parent 02da286 commit 8a2b2e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plogical/backupUtilities.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -963,21 +963,21 @@ def sendKey(IPAddress, password, port='22', user='root'):
963963

964964
except pexpect.TIMEOUT as msg:
965965

966-
command = 'chmod 644 %s' % ('/root/.ssh/cyberpanel')
966+
command = 'chmod 644 %s' % ('/root/.ssh/cyberpanel.pub')
967967
ProcessUtilities.executioner(command)
968968

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

973-
command = 'chmod 644 %s' % ('/root/.ssh/cyberpanel')
973+
command = 'chmod 644 %s' % ('/root/.ssh/cyberpanel.pub')
974974
ProcessUtilities.executioner(command)
975975

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

980-
command = 'chmod 644 %s' % ('/root/.ssh/cyberpanel')
980+
command = 'chmod 644 %s' % ('/root/.ssh/cyberpanel.pub')
981981
ProcessUtilities.executioner(command)
982982

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

0 commit comments

Comments
 (0)