Blogroll
Tags
-
Recent Posts
- Reinstall Yum Package Manager – in CentOS
- SSH Connection Shortcut
- Wordpress Blackberry Application
- Setup Outbound Mail IP Address for Postfix
- Removing Nginx Server Version
- HTTPS, SSL and Nginx
- Indonesian CentOS 5.2 Repo (IIX and openIXP)
- Nginx, MySQL, PHP in CentOS 5.1 (x86_64)
- Installation and Basic Configuration Apache, MySQL and PHP on CentOS 5.1 (64 bit)
- Adding SWAP Space On-The-Fly
- Basic Network Configuration in CentOS
- Securing MySQL Installation
- Adding MySQL User
- Change Your Time Zone
- XEN 3.2.0 on Debian Etch

SSH Connection Shortcut
Occasionally I have to leave my XP workstation and use Linux or Mac Desktop, both don’t have putty like in XP, most probably because they have built in SSH client installed :).
But I need somehow make it easier to connect from those desktop to servers with Key Authentication, instead of running this from the terminal;
While in Putty, I could simply use Connection Sessions preferences load a particular private key for specific connection and utilize Putty PageAnt to Authorize the pass phrase automatically. It is as simple as it gets since I only have to double click, and logged in instantly.
But turns out I can do the task event simpler in Linux or Mac. I create a folder in My Desktop to store my connection;
And create a file with .sh extension. doesn’t have to be .sh extension, just wanted to name it that way :).
And insert the content;
yourprivatekey.ppk is a private key, in my case, I exported it using Putty Gen from my XP machine so it is going to look like this;
And to load the connection from a terminal, simply execute the file (don’t forget to chmod so it becomes executable – like 755);
In a desktop environment, a pop up will appear asking for the pass phrases, you could add the pass phrase to your key chain or saved password avoid this the next time you load the connection.