当前位置:网站首页>SSH tool pyqt
SSH tool pyqt
2022-06-30 17:07:00 【AI vision netqi】
Upload and download
import paramiko
trans = paramiko.Transport(
sock=("10.10.21.177",22)
)
trans.connect(
username="root",
password="12345"
)
sftp = paramiko.SFTPClient.from_transport(trans)
# Upload
# Put the local file settings.py, Upload to the remote as /root/Desktop/settings.py
sftp.put("settings.py","/root/Desktop/settings.py")
# download
# From remote /root/Desktop/hh.py Get the file and download it to the local name hh.py
# sftp.get("/root/Desktop/hh.py","hh.py")
sftp.close()
Link to the original text :https://blog.csdn.net/qq_39112101/article/details/94175083
The original text also has multi-threaded applications
https://github.com/c0hb1rd/SSHTool


边栏推荐
- 为了使远程工作不受影响,我写了一个内部的聊天室 | 社区征文
- JS Es5 can also create constants?
- Rongsheng biology rushes to the scientific innovation board: it plans to raise 1.25 billion yuan, with an annual revenue of 260million yuan
- leetcode:1042. 不邻接植花【随机填入符合要求的 + 后面不会形成矛盾 + set.pop】
- redis淘汰策略
- [Verilog basics] octal and hexadecimal representation of decimal negative numbers
- TCP Socket与TCP 连接
- simpleITK读取nii遇到ITK only supports orthonormal direction cosines的错误
- Substrate 跨链技术源码级探索: XCVM的概览
- 7 月 2 日邀你来TD Hero 线上发布会
猜你喜欢

Consolidate entry-C basic variables and constants

数据挖掘知识点整理(期末复习版)

Implementation of aut, a self-developed transport layer protocol for sound network -- dev for dev column

Dart: string replace related methods

Niuke: how many different binary search trees are there

redis淘汰策略

Restartprocessifvisible process

【微信小程序】常用组件基本使用(view/scroll-view/swiper、text/rich-text、button/image)

IO流_递归

巩固入门-C#基础变量和常量
随机推荐
addmodule_ allmerge_ ams_ im
Eight basic sorting (detailed explanation)
Design of piece counter based on 51 single chip microcomputer
NielsenIQ迎来零售实验室负责人Dawn E. Norvell,将加速扩张全球零售战略
List announced - outstanding intellectual property service team in China in 2021
聊聊遠程辦公那些事兒 | 社區征文
nodejs学习笔记二
几个跨端开发神器
idea必用插件
[Verilog basics] summary of some concepts about clock signals (clock setup/hold, clock tree, clock skew, clock latency, clock transition..)
Required plug-ins for idea
Lambda expression_ Stream stream_ File class
列表变成向量 列表变向量 list vector
MySQL8 NDB Cluster安装部署
互联网研发效能实践之去哪儿网(Qunar)核心领域DevOps落地实践
基于51单片机的计件器设计
Jsr303 and common validator implementations
Differential analysis between different groups nichenet for silicosis runs successfully!
数据挖掘知识点整理(期末复习版)
Additional: (not written yet, don't look at ~ ~ ~) webmvcconfigurer interface;