mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 14:26:16 +01:00
Fix command spacing
This commit is contained in:
@@ -1090,7 +1090,7 @@ class backupUtilities:
|
|||||||
return [0, "377 Remote Server is not able to authenticate for transfer to initiate. [checkConnection]"]
|
return [0, "377 Remote Server is not able to authenticate for transfer to initiate. [checkConnection]"]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def verifyHostKey(IPAddress):
|
def verifyHostKey(IPAddress, port='22', user='root'):
|
||||||
try:
|
try:
|
||||||
backupUtilities.host_key_verification(IPAddress)
|
backupUtilities.host_key_verification(IPAddress)
|
||||||
|
|
||||||
@@ -1101,7 +1101,7 @@ class backupUtilities:
|
|||||||
expectation.append("continue connecting (yes/no)?")
|
expectation.append("continue connecting (yes/no)?")
|
||||||
expectation.append("password:")
|
expectation.append("password:")
|
||||||
|
|
||||||
setupSSHKeys = pexpect.spawn("ssh cyberpanel@" + IPAddress, timeout=3)
|
setupSSHKeys = pexpect.spawn("ssh -p " + port + user + "@" + IPAddress, timeout=3)
|
||||||
|
|
||||||
index = setupSSHKeys.expect(expectation)
|
index = setupSSHKeys.expect(expectation)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user