Python Advanced Tutorial - How to build SSH client in Python

preview_player
Показать описание
In this video, You can see, how to write SSH Client in Python.
Рекомендации по теме
Комментарии
Автор

cool! Thanks! instead of hostname used ipadress! works fine with rpi!

ben
Автор

I believe this has to be run from the local host. If I need to run this code under an application id, how to connect to the remote host without exposing login/passwd in this code?


Use Case:
In a corporate environment, developers wouldn't have access to prod servers. In that case, consider the case where some files needs to be copied from local host under which this script is scheduled to run to the remote host using ssh authentication.

prashanthtalla
Автор

Need to connect to a heap of Juniper Netscreen devices (legacy). Looks like 'exec_command' does not work, need to use. chan = client.invoke_shell() + chan.send('get system\n') ..etc.. , then deal with the chan.recv(9999) buffer for outputting to screen/file. Anyone out there ran into Paramiko SSH with Juniper Netscreen (screenos)??

osmike
join shbcf.ru