projects
/
remote-debug.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b5c71b3
)
Fix bug of known host
author
Peng Li
<seudut@gmail.com>
Fri, 22 Jun 2018 09:26:06 +0000
(17:26 +0800)
committer
Peng Li
<seudut@gmail.com>
Fri, 22 Jun 2018 09:26:06 +0000
(17:26 +0800)
suanzi-support
patch
|
blob
|
history
diff --git
a/suanzi-support
b/suanzi-support
index
678853d
..
183f6de
100755
(executable)
--- a/
suanzi-support
+++ b/
suanzi-support
@@
-38,7
+38,7
@@
def getAvailablePort(host, ports):
def exec_ssh(port):
if port == None:
raise Exception('Port not avaliable')
def exec_ssh(port):
if port == None:
raise Exception('Port not avaliable')
- command = 'sshpass -p' + PASSWORD + ' ssh -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -fCR ' + str(port) +':localhost:22 ' + USER + '@' + SSH_SERVER + ' sleep ' + str(ALIVE_TIME)
+ command = 'sshpass -p' + PASSWORD + ' ssh -o "S
trictHostKeyChecking=no" -o "UserKnownHostsFile /dev/null" -o "S
erverAliveInterval 60" -o "ServerAliveCountMax 3" -fCR ' + str(port) +':localhost:22 ' + USER + '@' + SSH_SERVER + ' sleep ' + str(ALIVE_TIME)
print command
return call(shlex.split(command), shell=False)
print command
return call(shlex.split(command), shell=False)