SSH Profiles with myssh
I have a hard time remembering IP addresses of the servers I maintain. Some of them are connected to a specific network only (meaning it’s possible to have two machines have the same IP address). To make it easier for me, I wrote some scripts to do all almost all the memorizing for me.
Download the files, extract and copy myssh* to /usr/bin and you’re good to go. To add a host, use myssh_write:
myssh_write yourlabel somehost someuser 22
The user and port are optional. They default to your username and port 22 respectively.
To connect to somehost, use myssh:
myssh yourlabel
You can make it even easier by adding an alias to your bashrc, alias ssh='myssh', and using SSH keys.
Download: myssh.tar.gz
P.S. I wrote the two scripts in PHP. I have a hundred reasons to do this in Python but I just got too lazy to experiment. I’ll have it ported next week.
![iRant | [root@jploh.com ~]# cat /var/log/irant_](http://blog.jploh.com/wp-content/themes/default2/images/blog_jplohcom.jpg)
Add New Comment
Viewing 2 Comments
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Add New Comment