ssh = paramiko.SSHClient() ssh.connect(host, port, username, pkey=key, timeout=2) stdin, stdout, stderr = ssh.exec_command(shell) stdin, stdout, stderr = ssh.exec_command(shell) result = stdout.read(), stderr.read() where the result result can not be r...
1. You need to use the paramiko module to send two commands to the switch. The first screen-length disable is used to cancel the single-screen echo, and the second display cur is used to output the contents of the configuration file. There are t...