Posts

Showing posts with the label ubuntu

Manage an ssh alias from Linux or Mac terminal

in ~/bash_profile, add the following line alias alias-test ='ssh -i <path to private key - pem file> ubuntu@<Target IP address or domain name>' Example: alias-test=' ssh -i /home/dummy/alias-check.pem ubuntu@123.123.345.345' ~ stands for home directory (like /home/<username>) Now from terminal type short word and you will have done ssh login very quickly. $alias-test

How to find OS details in Ubuntu

$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.4 LTS Release: 12.04 Codename: precise This is ubuntu OS and version is 12.04 LTS* LTS - Long Term Support version