import paramiko
import sys

def main():
    host = '187.124.1.129'
    user = 'root'
    password = '#AaaBbbCcc123#'
    
    try:
        client = paramiko.SSHClient()
        client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
        client.connect(host, username=user, password=password)
        print("Connected to KVM 2 successfully.")
        
        stdin, stdout, stderr = client.exec_command('ls -la /root/tajerstores')
        print(stdout.read().decode('utf-8'))
        
        client.close()
    except Exception as e:
        print(f"Failed to connect: {e}")

if __name__ == '__main__':
    main()
