Skip to main content

so

This is a SSH login tool

Installation

pip install --upgrade 0lever-so
or
pip install --upgrade 0lever-so -i https://pypi.org/simple/

Usage

# 初始化配置文件,升级无需初始化,chmod 400 ~/.so/keys/*
➜  ~ so_install
➜  ~ cd .so
➜  .so tree
.
├── keys
│   └── demo.pem
└── password.yaml

1 directory, 2 files
➜  .so
# 配置文件
ssh:
  - id: 1
    name: demo1
    user: fqiyou
    password: xxx
    host: 1.1.1.1
    port: 20755
  - id: 2
    name: demo2
    user: fqiyou
    password: xxx
    host: 1.1.1.1
    port: 39986
  - id: 3
    name: demo3
    user: root
    password: demo.pem
    host: 1.1.1.1
    port: 22

Other-shell


#!/usr/bin/expect
set USER "xxx"
set PASSWD "xxx"
set timeout 10

trap {
    set rows [stty rows]
    set cols [stty columns]
    stty rows $rows columns $cols < $spawn_out(slave,name)
} WINCH
spawn su - $USER
expect "Password: "
send "$PASSWD\n"
interact
#!/usr/bin/expect -f
set HOST [lindex $argv 0]
set USER [lindex $argv 1]
set PASSWD [lindex $argv 2]
set PORT [lindex $argv 3]
set timeout 10

trap {
    set rows [stty rows]
    set cols [stty columns]
    stty rows $rows columns $cols < $spawn_out(slave,name)
} WINCH

spawn ssh $USER@HOST -p $PORT
expect {
    "*yes/no" {send "yes\r"; exp_continue}
    "*password:" {send "$PASSWD\r"}
}
interact
```

Metadata

Release files for 0lever-so 2.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for 0lever-so 2.0.3
File Size Uploaded Provenance Actions
0lever_so-2.0.3.tar.gz 4.2 kB Without provenance Details for 0lever_so-2.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for 0lever-so 2.0.3
File Interpreter ABI Platform Actions
0lever_so-2.0.3-py3-none-any.whl Python 3 none any Details for 0lever_so-2.0.3-py3-none-any.whl

Total release size: 8.7 kB

Release files / 0lever_so-2.0.3.tar.gz

Download URL 0lever_so-2.0.3.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a2f3366f446ef6830bb7cf7fb670bf10680c73bddfe161f5b747201a8eca36d2
BLAKE2b-256 checksum
How to use checksums
7a926bd0234e3fb15fbc4045900c83ac83bd3f8518f6a9b25d34da0a623314d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Release files / 0lever_so-2.0.3-py3-none-any.whl

Download URL 0lever_so-2.0.3-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3da9f979226164cbfe2af707db82f9af4d062efa1c3fe701202519ed1367dd81
BLAKE2b-256 checksum
How to use checksums
a168af18ac5f89543390047a5c1713a39bc8f6b843cec2d737e4b62df01fbeb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Security for 0lever-so 2.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page