Update common.py
This commit is contained in:
parent
5aca7d7c26
commit
8040c8c67a
|
|
@ -68,7 +68,7 @@ def initDBSshPort():
|
|||
import firewall_api
|
||||
cmd_data = mw.execShell(
|
||||
"cat /etc/ssh/sshd_config | grep 'Port \d*' | tail -1")
|
||||
ssh_port = cmd_data[0].replace("Port ", '')
|
||||
ssh_port = cmd_data[0].replace("Port ", '').strip()
|
||||
if ssh_port == '':
|
||||
firewall_api.firewall_api().addAcceptPortArgs(22, 'SSH远程管理服务', 'port')
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue