I'm writting a Software to get some Information about Server and i just want to get the python Version from an remote Server.
Here is my code:
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(self.server, username=self.user, password=self.pass)
stdin, stdout, stderr = ssh.exec_command("/usr/bin/python -V")
stdin.flush()
data = stdout.readlines()
print data #just debug
ssh.close()
The print just returns "[]".