Skip to main content

A script which can directly login the lab's server without knowing the IP.

Project description

pip

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'.

gif with examples

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

labssh-1.0.2-py2.py3-none-any.whl (2.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file labssh-1.0.2.tar.gz.

File metadata

  • Download URL: labssh-1.0.2.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2

File hashes

Hashes for labssh-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7302bae36d1d97766f796f89602b7dde621534f5db0fd474e042b460b4f52656
MD5 c3e5652c38b6d2a4a2621c5aa7647aeb
BLAKE2b-256 30eaa8fb831fdfc0b649203ab425b714a743966f30f169085acca21509ce0d47

See more details on using hashes here.

File details

Details for the file labssh-1.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: labssh-1.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2

File hashes

Hashes for labssh-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f535f2f429fc95305c6445c27a805006add2a8855ef0eea6b934672053dcc8d1
MD5 5d3e2257970a7dd66290f8f1d17abe39
BLAKE2b-256 6173610d87daefcb556e4413d9382bb8faf22b69fb0ffdfaf312879ca09e1ede

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page