当前位置:网站首页>ssh工具 pyqt
ssh工具 pyqt
2022-06-30 15:49:00 【AI视觉网奇】
上传下载
import paramiko
trans = paramiko.Transport(
sock=("10.10.21.177",22)
)
trans.connect(
username="root",
password="12345"
)
sftp = paramiko.SFTPClient.from_transport(trans)
#上传
#把本地的文件settings.py,上传到远端为/root/Desktop/settings.py
sftp.put("settings.py","/root/Desktop/settings.py")
#下载
#从远程/root/Desktop/hh.py获取文件下载到本地名称为hh.py
# sftp.get("/root/Desktop/hh.py","hh.py")
sftp.close()
原文链接:https://blog.csdn.net/qq_39112101/article/details/94175083
原文还有多线程应用
https://github.com/c0hb1rd/SSHTool


边栏推荐
- Research on helmet wearing detection algorithm
- simpleITK读取nii遇到ITK only supports orthonormal direction cosines的错误
- [demo] write file circularly
- Mathematical modeling for war preparation 35 time series prediction model
- Dart: string replace related methods
- 阿里云盘分享压缩包
- List becomes vector list becomes vector list vector
- Tencent two sides: @bean and @component are used on the same class. What happens?
- STL tutorial 7-set, pair pair pair group and functor
- 补充材料 supplementary
猜你喜欢

redis数据结构分析

Good partner for cloud skill improvement, senior brother cloud of Amazon officially opened today

编译丨迅为iTOP4412开发板Makefile编译

AVIC UAV technology innovation board is listed: the fist product with a market value of 38.5 billion is pterodactyl UAV

香港回归25周年 香港故宫博物馆正式开放成文化新地标

坚果云-在新电脑上同步移动硬盘的文件
![Halcon knowledge: regional topics [07]](/img/18/680997127047fb24b0ee4f19d8f2c5.png)
Halcon knowledge: regional topics [07]

RT thread heap size setting

The meaning of linetypes enumeration values (line_4, line_8, line_aa) in opencv

JS ES5也可以创建常量?
随机推荐
安全帽佩戴检测算法研究
香港回归25周年 香港故宫博物馆正式开放成文化新地标
restartProcessIfVisible的流程
RT-Thread 堆區大小設置
Drug management system plus database, overnight, plus report
Internet R & D efficiency practice qunar core field Devops landing practice
HMS core audio editing service 3D audio technology helps create an immersive auditory feast
【微信小程序】小程序的宿主环境
AVIC UAV technology innovation board is listed: the fist product with a market value of 38.5 billion is pterodactyl UAV
JSR303以及常见Validator实现
Halcon knowledge: matrix topic [02]
MySQL8 NDB Cluster安装部署
go-micro教程 — 第一章 快速入门
CGR 21 (D,E,F)
Mathematical modeling for war preparation 33- grey prediction model 2
Etcd tutorial - Chapter 8 compact, watch, and lease APIs for etcd
【机器学习】K-means聚类分析
Undistorted resize using pil
[demo] write file circularly
“推广+搞笑剧情”,如何碰撞出爆款的火花?