I am writing on windows in VS code, version python 3.6.8. I want to get a list of folders and files over SSH (on Linux).
I am writing this code:
import paramiko host = '192.168.0.8' user = 'login' secret = 'password' port = 22 client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) client.connect(hostname=host, username=user, password=secret, port=port) stdin, stdout, stderr = client.exec_command('ls') data = stdout.read() + stderr.read() Print(data) client.close() Displays \ X32 \ X03 \ X62, etc. As I understood it, but I do not understand how to deal with these.
Print ()? or just a typo? - Fat-Zer