8 lines
306 B
Python
8 lines
306 B
Python
import paramiko
|
|
c = paramiko.SSHClient()
|
|
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
|
c.connect('192.168.0.61', username='root', password='59911784', timeout=15)
|
|
_, o, _ = c.exec_command('sed -n "187,205p" /volume1/docker/njts-accounting/frontend/index.html')
|
|
print(o.read().decode())
|
|
c.close()
|