A wrapper for sshpass
Project description
spw
A wrapper for sshpass
To install spw
, use pip:
pip install sshpass-wrapper
then, run with spw
Usage:spw [option] command host [parameters]
option:
-h or --help: show help info
-f password-file, default is '~/.spw.pf'
-o command-option
-v verbose
command:
set #set password
get #get password
ssh #wrap sshpass to exec ssh
scp #wrap sshpass to exec scp
host:
from ssh_config's Host
example:
spw set localhost password #set localhost's password
- set localhost #remove localhost's password
- get localhost #get localhost's password
- ssh localhost #ssh connect localhost
- ssh localhost arg1 arg2 #ssh connect localhost with args
- -o '-p 22' ssh localhost arg1 arg2 #ssh connect localhost with options and args
- -vo '-p 22' ssh localhost arg1 arg2 #-v show verbose
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sshpass-wrapper-0.0.3.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file sshpass-wrapper-0.0.3.tar.gz
.
File metadata
- Download URL: sshpass-wrapper-0.0.3.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8679bb99028d5d7bbeaa9c6ddd82acc9e07311567d9ccfd1188e539d6b8d5993 |
|
MD5 | c4c8ce24d0c0eaacc7cb397b576b7b9c |
|
BLAKE2b-256 | 5d77600fd29bd4ae231ce330bbe5cb3c223514ab32aaf180f62f575cf95acf3b |
File details
Details for the file sshpass_wrapper-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: sshpass_wrapper-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d24e174a9fd462187cf0b9f73911a2809cd06e6f64807035b10d6ea214af27e8 |
|
MD5 | 6bc67b7c9f5fe15cb0f3e1ae0caad5d7 |
|
BLAKE2b-256 | 80a7f5188838ee261ca969fd9a4dc31e75d6457c4b107ab83489820ea64f3575 |