首页
学习
活动
专区
工具
TVP
发布

授客的专栏

专业软件测试知识分享平台
专栏成员
609
文章
1126393
阅读量
42
订阅数
Linux 修改linux的SSH的默认端口
安装完linux后,默认的情况下ssh是开放的,容易造到黑客攻击,简单有效的操作之一就是修改默认端口号
授客
2019-09-11
3.9K0
Python_基于Python同Linux进行交互式操作实现通过堡垒机访问目标机
https://pypi.python.org/pypi/paramiko/1.15.2
授客
2019-09-11
1.4K0
Python 基于Python实现的ssh兼sftp客户端(下)
#!/usr/bin/env/ python # -*- coding:utf-8 -*- __author__ = 'laifuyu' import os import subprocess class OtherTools: def __init__(self): self.filepath_list = [] # 批量创建目录 def mkdirs_once_many(self, path): path = os.path.normpath(path) # 去掉路径最右侧的 \\ 、/ path = path.replace('\\', '/') # 将所有的\\转为/,避免出现转义字符串 head, tail = os.path.split(path) new_dir_path = '' # 反转后的目录路径 root = '' #根目录 if not os.path.isdir(path) and os.path.isfile(path): # 如果path指向的是文件,则继续分解文件所在目录 head, tail = os.path.split(head) if tail == '': return while tail: new_dir_path = new_dir_path + tail + '/' head, tail = os.path.split(head) root = head else: new_dir_path = root + new_dir_path # 批量创建目录 new_dir_path = os.path.normpath(new_dir_path) head, tail = os.path.split(new_dir_path) temp = '' while tail: temp = temp + '/' + tail dir_path = root + temp if not os.path.isdir(dir_path): os.mkdir(dir_path) head, tail = os.path.split(head)
授客
2019-09-11
9740
Python 基于Python实现的ssh兼sftp客户端(上)
https://pypi.python.org/pypi/paramiko/1.15.2
授客
2019-09-11
1.3K0
Jenkins Jenkins结合GIT Maven持续集成环境配置
下载地址:https://www.kernel.org/pub/software/scm/git/git-1.8.3.1.tar.gz
授客
2019-09-11
8540
Git 在同一台机器上配置多个Git帐号
git config --global --unset user.password
授客
2019-09-10
2.3K0
没有更多了
社区活动
【纪录片】中国数据库前世今生
穿越半个世纪,探寻中国数据库50年的发展历程
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档