How to filter ssh banner when using python paramiko
问题 I am wondering how to ask paramiko to filter the ssh banner. Source Code from others When I execute a command, contents of the banner come with result together. Something like below pprint(connection.execute('date')) #['Welcome to my shell\n', 'Fri Jul 11 15:07:11 HKT 2014\n'] Method I have tried self._transport.get_banner() # always return none I have checked out a bit of the paramiko source code. There are codes for parsing banner internally. But the question is how can I make sure of them