( fsanyee | 2020. 02. 13., cs - 08:18 )

works for me:

>>> client.connect('localhost',port=2222,username='root',password=pw)
>>> cstdin, cstdout, cstderr = client.exec_command('uname')
>>> cstdout.readline()
'Linux\n'