Tuesday, September 18, 2012

Perform commands over ssh with Python - Stack Overflow

Perform commands over ssh with Python - Stack Overflow: "ssh = paramiko.SSHClient()
ssh.connect(server, username=username, password=password)
ssh_stdin, ssh_stdout, ssh_stderr = ssh_session.exec_command(cmd_to_execute)"