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.

Files for labssh, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size labssh-1.0.2-py2.py3-none-any.whl (2.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size labssh-1.0.2.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page