web UPDATED
This commit is contained in:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user