web UPDATED

This commit is contained in:
Kai Wansart
2018-02-03 23:02:02 +01:00
parent 842f703a05
commit 179861a133
37 changed files with 40198 additions and 30 deletions

View File

@ -19,10 +19,12 @@ class SSH(object):
if device in self.devices:
ip = self.devices[device]['ip']
user = self.devices[device]['user']
print(ip)
print(user)
try:
client = SSHClient()
client.load_system_host_keys()
client.connect(ip = ip, user = user)
client.connect(ip = "192.168.178.81", user = "root")
except:
print("Server nicht erreichbar")
finally: