paramiko: ssh2 protocol for python. The SFTP support has a very pleasant API.
Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.
Pay me to send you less!