Coredump

Work, play, and everything in-between.

Archive for July 15th, 2006

CLI shortcuts, 6

without comments

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

Written by Ian Dexter

July 15th, 2006 at 12:33 am

Posted in Play

Tagged with , ,