# ssht00ls
Author(s): Daan van den Bergh.<br>
Copyright: © 2020 Daan van den Bergh All Rights Reserved.<br>
Supported Operating Systems: macos & linux.<br>
<br>
<br>
<p align="center">
<img src="https://raw.githubusercontent.com/vandenberghinc/public-storage/master/vandenberghinc/icon/icon.png" alt="Bergh-Encryption" width="50">
</p>
## Table of content:
* [Description](#description)
* [Installation](#installation)
* [Notes.](#notes.)
* [CLI Usage](#cli-usage)
* [Code Examples](#code-examples)
# Description:
Python & cli ssh toolset.
# Installation:
Install the package.
curl -s https://raw.githubusercontent.com/vandenberghinc/ssht00ls/master/ssht00ls/requirements/installer.remote | bash
# Notes.
1. (linux required to convert smart card modes.)
# CLI Usage:
Usage: ssht00ls <mode> <options>
Modes:
Keys:
--generate : Generate a ssh key.
--path /keys/mykey/ : Specify the keys directory path.
--passphrase Passphrase123 : Specify the keys passphrase.
--comment 'My Key' : Specify the keys comment.
Aliases:
--list-aliases : List all aliases.
--joiner ',' : Optionally specify the joiner.
--alias example.com : Select one or multiple aliases (example: x,y,z) (or use all to select all aliases).
--info : Show the aliases info.
--delete : Delete an alias.
-f / --forced : Ignore the are you sure prompt.
--create : Create an alias.
--server example.com : Specify the server's name.
--username myuser : Specify the username.
--ip 0.0.0.0 : Specify the server's ip.
--port 22 : Specify the server's port.
for ssh keys :
--key /path/to/key/private_key : Specify the path to the private key.
--passphrase 'MyPassphrase123' : Specify the keys pasphrase (optional).
for smart cards :
--smart-cards : Enable the smart cards boolean.
--pin 123456 : Specify the smart cards pin code (optional).
--edit : Edit the alias config.
*** same options as --create ***:
--alias newalias : Rename the alias.
Sessions:
--command <alias> 'ls .' : Execute a command over ssh.
--session <alias> : Start a ssh session.
--options '' : Specify additional ssh options (optional).
Push & pull:
--pull <path> <alias>:<remote> : Pull a file / directory.
--delete : Also update the deleted files (optional).
--safe : Enable version control.
--forced : Enable forced mode.
--push <alias>:<remote> <path> : Push a file / directory.
--delete : Also update the deleted files (optional).
--safe : Enable version control.
--forced : Enable forced mode.
--exclude .git,.gitignore : Exclude additional subpaths (optioal).
--no-exclude : Skip the default excludes and exlude nothing.
Mounts:
--mount <alias>:<id> <path> : Mount a remote share.
--smb : Select smb mode (default).
--sshfs : Select sshfs mode (when enabled parameter id becomes remote).
*** smb options: *** : SMB --mount options.
--reconnect : Attempt to reconnect the mount when the connection is lost.
--tunnel : Mount the smb share through a ssh tunnel (overwrites options --port & --ip).
--username administrator : Overwrite the smb user (default is retrieved from alias).
--password 'SomePassphrase123' : Set the password of the smb user login (default is no password '').
--port 445 : Select a specific smb port (default is 445).
--ip 127.0.0.1 : Select a specific ip (default is retrieved from alias).
--unmount <path> : Unmount a mounted share.
--sudo : Root permission required.
--forced : Enable forced mode.
Tunnels:
--list-tunnels [optional: <alias>] : List all tunnels, optionally pass an alias filter.
--joiner ',' : Optionally specify the joiner.
--tunnel <port>:<ip>:<remote_port>:<alias> : Select a ssh tunnel.
--establish : Establish the selected ssh tunnel.
--reconnect : Attempt to reconnect the tunnel when the connection is lost.
--sleeptime 60 : Set the sleeptime value (default is 60) (only when --reconnect is enabled).
--reattempts 15 : Set the reattempts value (default is 15) (only when --reconnect is enabled).
--kill : Kill the selected ssh tunnel.
Agent:
--sync : Manually synchronize the aliases & add the keys to the agent.
--start-agent : Start the ssht00ls agent manually.
--stop-agent : Stop the ssht00ls agent.
Basic:
--kill <identifier> : Kill all ssh processes that include the identifier.
--config : Edit the ssht00ls configuration file (nano).
--reset-cache : Reset the cache directory.
--version : Show the ssht00ls version.
-h / --help : Show the documentation.
Notes:
Include config file : Specify the $SSHT00LS_CONFIG environment variable to use a different ssht00ls config file.
Author: Daan van den Bergh.
Copyright: © Daan van den Bergh 2020 - 2021. All rights reserved.
# Code Examples:
### Table of content:
- [__Agent__](#agent)
* [add](#add)
* [delete](#delete)
* [list](#list)
* [check](#check)
* [initialize](#initialize)
- [__Aliases__](#aliases)
* [list](#list-1)
* [iterate](#iterate)
* [check](#check-1)
* [check_duplicate](#check_duplicate)
* [info](#info)
* [delete](#delete-1)
* [edit](#edit)
* [create](#create)
* [sync](#sync)
* [public](#public)
- [__Client__](#client)
* [generate](#generate)
* [create](#create-1)
* [check](#check-2)
* [exists](#properties)
- [__Connections__](#connections)
* [list](#list-2)
- [__Encryption__](#encryption)
* [generate](#generate-1)
* [activate](#activate)
* [activated](#properties-1)
- [__Installation__](#installation)
* [install](#install)
* [check_installed](#check_installed)
- [__Keys__](#keys)
* [edit_passphrase](#edit_passphrase)
* [edit_comment](#edit_comment)
* [generate](#generate-2)
* [check](#check-3)
* [enable](#enable)
* [disable](#disable)
- [__SCP__](#scp)
* [download](#download)
* [upload](#upload)
- [__SMB__](#smb)
* [mount](#mount)
* [unmount](#unmount)
* [parse](#parse)
* [id](#properties-2)
- [__SSH__](#ssh)
* [session](#session)
* [command](#command)
- [__SSHD__](#sshd)
* [create](#create-2)
- [__SSHFS__](#sshfs)
* [mount](#mount-1)
* [unmount](#unmount-1)
- [__SSync__](#ssync)
* [index](#index)
* [set_mounted_icon](#set_mounted_icon)
* [pull](#pull)
* [push](#push)
- [__SmartCard__](#smartcard)
* [get_info](#get_info)
* [unblock_pin](#unblock_pin)
* [change_pin](#change_pin)
* [change_puk](#change_puk)
* [generate_key](#generate_key)
* [generate_management_key](#generate_management_key)
* [reset_piv](#reset_piv)
* [export_keys](#export_keys)
* [check_smartcard](#check_smartcard)
* [convert_to_smartcard](#convert_to_smartcard)
* [install](#install-1)
- [__SmartCards__](#smartcards)
* [scan](#scan)
* [find_smartcard](#find_smartcard)
- [__Tunnel__](#tunnel)
* [establish](#establish)
* [kill](#kill)
* [list](#list-3)
* [iterate](#iterate-1)
* [id](#properties-3)
## Agent:
The agent object class.
``` python
# initialize the agent object class.
agent = ssht00ls.classes.agent.Agent(
# initialize as specific not global (optional).
# the path to the public key.
public_key=None,
# the path to the private key.
private_key=None,
# the smart card boolean.
smartcard=False, )
```
#### Functions:
##### add:
``` python
# call age
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共53个文件
py:31个
txt:4个
png:3个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
资源分类:Python库 所属语言:Python 资源全名:ssht00ls-3.16.3.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![msi](https://img-home.csdnimg.cn/images/20210720083646.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/TXT.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/TXT.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/TXT.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/TXT.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
共 53 条
- 1
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/277f6345dca0446498fbbc03843436aa_qq_38161040.jpg!1)
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)