Slosh
For more information on using and configuring SSH through the SSH config file, check out this helpful guide: Using the SSH Config File.
Installation
$ pip install slosh
Usage
By default slosh is simply a pass-through to the ssh command. So you can run any ssh command normally, using slosh.
$ slosh -i ~/.ssh/mykey.pem ubuntu@1.1.1.1
Add new connection
To save a connection to the SSH config file add --save-as <host alias> to your connection command. The host alias is how you will reference the connection in the future.
$ slosh -i ~/.ssh/mykey.pem --save-as myserver ubuntu@1.1.1.1
In the above example we used --save-as myserver to save the connection information to the SSH config file under the alias myserver. This means that we can now run slosh myserver or ssh myserver to connect to the server.
Update connection
Simply use the --save-as option with the host alias of the connection you wish to update. Here we add compression (-C) and change the login username (newuser) of our original connection.
$ slosh -i ~/.ssh/mykey.pem -C --save-as myserver ubuntu@1.1.1.1
Supported options
The below ssh options are saved to the config. Let me know if you'd like more options to be added.
-l <user>: Specifies the username for the connection.-p <port>: Specifies the port number for the connection.-i <identity file>: Specifies the path to the private key file for the connection.-A: Enables forwarding of the authentication agent connection.-C: Requests compression of all data.-v: Increases verbosity. Can be used up to three times (-vvv).
For a comprehensive list of all ssh options and their explanations, you can refer to the official SSH manual page: SSH Manual Page.
Metadata
Release files for slosh 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| slosh-0.0.1.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| slosh-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.6 kB
Release files / slosh-0.0.1.tar.gz
| Download URL | slosh-0.0.1.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6acacadad3946ec977eb699e6e59068f15d47b2df628e8a2d04112f818e7f82
|
|
BLAKE2b-256 checksum How to use checksums |
5bf97c373c72fc1eba590abce09f4d843cfa89ec168304c55b02538784bd8e99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.9
|
Release files / slosh-0.0.1-py3-none-any.whl
| Download URL | slosh-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
433c3d99db34db320ced519fb15fa4630f41f286cbc6508536595a3fa840527e
|
|
BLAKE2b-256 checksum How to use checksums |
175d04835e265679bf1d59803d5822754b0e5818ae780584892a20f1e8f5865f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.9
|