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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

Supported by

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