Skip to main content

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

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
labssh-1.0.1-py2.py3-none-any.whl (2.9 kB) Copy SHA256 hash SHA256 Wheel py2.py3
labssh-1.0.1.tar.gz (2.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page