Thursday, July 16, 2009

Handy SSH Tips

A couple of months ago I came across a post in Fabien Potencier's blog about how to speed up everyday usage of numerous ssh connections. Fabien, who is the one of the founders, architects and maintainers of a pretty prominent PHP MVC framework Symfony, reminds his readers about the possibility to configure ssh.
One can easily edit .ssh/config file in her home directory to provide a shortcut for every server.
For instance, you can login to the remote server by simply issuing

/# ssh bomk

Where bomk is an alias for the server name, user name and identity file to use.
Moreover, such a configuration allows its users to use

/# scp file1.tgz bomk:

As a simple and powerful way for sending files to a remote server.

No comments: