A script which can directly login the lab's server without knowing the IP.
Project description
ssh-for-lab
A script which can directly login the lab's server without knowing the IP.
The script works very simply. Check if the hostname is 'lab'. if so, find the newest IP address from the website, replace hostname with IP address, and then give the transformed command to 'os system'.
Installation
pip install labssh
How To Use
- just print IP
labssh
- use 'lab' as hostname to login lab's server
labssh root@lab
- just use as ssh
labssh root@172.26.153.20 -p 220
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
labssh-1.0.2.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for labssh-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f535f2f429fc95305c6445c27a805006add2a8855ef0eea6b934672053dcc8d1 |
|
MD5 | 5d3e2257970a7dd66290f8f1d17abe39 |
|
BLAKE2b-256 | 6173610d87daefcb556e4413d9382bb8faf22b69fb0ffdfaf312879ca09e1ede |