09 July 2006

quick ssh script

Create a script called ssh-to like so:
#!/bin/sh
ssh `basename $0` $*
>ln -s ssh-to server1

now to ssh to server1 all you need type is
>server1

you can also run commands on server e.g
>server1 ls -al

No comments:

Post a Comment