BuildTheNet

Opening your workspace

Your learning content and tools are loading.

Learning paths › Automation › Paramiko: SSH to devices from Python

Paramiko: SSH to devices from Python

Paramiko put to work: a prompted password instead of a hardcoded one, OSPF configured across a list of routers, a Linux shell driven interactively while exec_command keeps stdout and stderr apart, the repeated SSH logic moved into a module that does not connect when imported, a config backup written per device, device waits overlapped on a thread pool, and files moved with SCP — after which Netmiko takes over prompt and paging handling and pushes a reviewed config file. Explanation and checks; two written exercises.

Lessons

More in Automation