ssh-login 一键密码加密登录工具
2016-12-19 20:34
561 查看
ssh-login
1. Feature
管理多个帐号,每个帐号一个易记的 tip name,支持 tab 进行 tip name 补全,一键 ssh 登录密码 AES 加密,密文存储密码,且只需要记住一个任意长 key,即可解密登录,所有帐号 key 可以相同
随时添加新账号,修改 key、密码只需要一条指令
2. Todo
3. Finished
4. Installation
4.2 安装
单一的 python 执行文件github:https://github.com/cposture/ssh-login
4.1 依赖模块
1. python 2.6 2. Crypto 模块 3. pexpect 模块
chmod +x login.py
5. Configuration
概念:key 用于 AES 加密密码,初始化加密密码时生成,登录帐号时使用,任意长;tip_name:你帐号的简短小名,登录帐号时使用,任意长,自定义指定于配置文件中
5.1 配置文件
{ "tip_name": { "Hostname" : "root@xx.xx.xx.xx", "Password" : "abcd" } }
6. Usage
特性:可以使用 tab 键进行 tip_name 补全This is a auto ssh-login script that also can store your password encryptly. Usage: ./login.py [--add] [--ency] [--decy] [--mod] [--modkey] [--show] [--del] notice: you can hit tab or input 'tip name' or 'all' keyword to select user --add add user --del delete user --show show userinfo --ency encrypt password --decy decrypt password --mod modify password --modkey modify key Example: 1. Add user ./login.py --add > input new user@ip: root@10.121.123.123 > input new password: 123 > input new tip name: testtip > input new key: mykey > input new notice: test string 2. Login ./login.py > input tip name: testtip > input key: mykey 3. Encrypt password ./login.py --ency > input tip name: all # notice: the keyword 'all' represent all the encrypted password in the configure file 4. Decrypt password ./login.py --decy > input tip name: testtip > input key: mykey
6.1 Example
1. 添加
./login.py --add > input new user@ip: root@10.121.123.123 > input new password: 123 > input new tip name: testtip > input new key: mykey > input new notice: test string
2. 登录
./login.py > input tip name: testtip > input key: mykey
3. 加密
./login.py --ency > input tip name: all # 说明:这里 all 代表加密配置文件里的密码(自动排除已加密),或者 可以为 tip_name 列表
4. 解密
./login.py --decy > input tip name: testtip > input key: mykey
相关文章推荐
- 利用ssh-keygen工具使ssh/sftp无密码登录服务器
- SSH与Telnet密码加密登录
- ssh免密码登录机器(使用公钥和秘钥进行加密来实现)
- mysql登录密码加密工具mysql_config_editor
- 利用ssh-keygen工具使ssh/sftp无密码登录服务器
- 获取MySQL加密密码并验证用户输入(登录界面),retrieve hashpwd from mysql and compare with input password on login
- ssh免密码登录机器(使用公钥和秘钥进行加密来实现)
- 使用ssh不输入密码登录到Linux
- ssh无密码登录
- SSH 登录工具常用命令
- ssh免密码自动登录及相关问题解决
- SSH的无密码登录
- ssh 使用公钥免密码远程登录
- 2K/XP/2003 系统登录密码破解超简单,什么工具都不用
- 转:使用ssh公钥实现ssh免密码登录
- ssh 不输密码远程登录
- ssh记住远程登录密码
- ssh无需密码提示登录
- 使用ssh无密码登录
- 防暴力破戒ssh登录密码