日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

python ssh登陆模块_Python sshh包_程序模块 - PyPI - Python中文网

發布時間:2025/3/20 python 43 豆豆
生活随笔 收集整理的這篇文章主要介紹了 python ssh登陆模块_Python sshh包_程序模块 - PyPI - Python中文网 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

sshh是一個ssh幫助工具,用于在ssh代理中批量注冊ssh私鑰。

sshh的主要目的是避免在

在ssh代理中注冊的密鑰數超過一定數量。當

當服務器設置私鑰上限時,超過了密鑰嘗試的上限

嚴格的嘗試。

通過清除ssh代理中注冊的所有密鑰并注冊

如有必要,或每次輸入密碼短語。但是,在這種情況下

是多個密鑰和服務器,ssh連接可能非常麻煩。sshh使用python的

子進程包以啟動新的ssh代理,并進一步調用ssh add來集體注冊

盡可能多的私鑰。這使你免去了麻煩。

用法

初始值(.venv) $ sshh-config init

Enter password for your registry: xxxxx

The registry file ~/.sshh.registry is created.

更改密碼(.venv) $ sshh-config chpw

Enter CURRENT password for your registry: xxxxx

Enter NEW password for your registry: yyyyy

Enter NEW password again for verification: yyyyy

Password has been changed.

注冊鍵(.venv) $ sshh-add -g prod ~/id_rsa_server1

Enter password for your registry: xxxxx

Enter passphrase for the keyfile: yyyyy

The keyfile is registered.

列表鍵(.venv) $ sshh-add -l

Enter password for your registry: xxxxx

[prod]

/home/user/.ssh/id_rsa_server1

/home/user/.ssh/id_rsa_server2

[stg]

/home/user/.ssh/id_rsa_server7

/home/user/.ssh/id_rsa_server8

調用ssh代理(venv) $ sshh-agent -g prod

Enter password for your registry: xxxxx

Enter password for your registry:

Registering keys for session "prod"

ssh-agent PID=67779 session "prod" has been started. To close this session, exit shell.

[prod] (venv) $

[prod] (venv) $ exit

exit

ssh-agent PID=67779 session "prod" has been closed.

(venv) $

歡迎加入QQ群-->: 979659372

推薦PyPI第三方庫

總結

以上是生活随笔為你收集整理的python ssh登陆模块_Python sshh包_程序模块 - PyPI - Python中文网的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。