CLI shortcuts, 6

Here's a nifty SSH 'shortcut'. This requires that you have an existing SSH key on the remote box.

Use this script, named ssh-to:


#!/bin/sh
ssh `basename $0` $*


Add to the bin directory, then add symlinks to your remote box(es):


$cd /bin
$ln -s ssh-to remote-server-name


Issue a remote command:

remote-server-name free


Source: O'Reilly Linux Server Hacks

Comments

Popular posts from this blog

Pull files off Android phone