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 freeSource: O’Reilly Linux Server Hacks
Read more:
- Run X apps on Windows
- Windows-to-*nix public key authentication
- CLI shortcuts, 7
- Using non-interactive FTP
- SMTP testing automation
No Comments Yet