init: CasSsoService CAS 5.3 overlay (cas.war via LFS)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import paramiko
|
||||
HOST="192.168.10.157"; PORT=22; USER="yunhai"; PASS="123456"
|
||||
ssh = paramiko.SSHClient()
|
||||
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
ssh.connect(HOST, port=PORT, username=USER, password=PASS, timeout=20)
|
||||
stdin, stdout, stderr = ssh.exec_command("docker logs --tail 80 cas-sso 2>&1 | tail -80")
|
||||
print(stdout.read().decode('utf-8','ignore'))
|
||||
ssh.close()
|
||||
Reference in New Issue
Block a user