OpenSSH Speed Tips and Tricks
ssh-copy-id, sshfs, speed!
carla@host1:~$ ssh terry@host2 ls ~This is a fun example that also demonstrates a little gotcha- ls ~ will list Carla's home directory, not Terry's. If you want to see Terry's home directory you must specify ls /home/terry. You can do this with any one-off command, such as starting a backup script, viewing running processes or printing a document.
$ ssh-copy-id -i id_rsa.pub terry@host2ssh-copy-id copies identity keys in the correct format, makes sure file permissions and ownership are correct, and ensures a private key is not accidentally copied.
Using key-based authentication instead of passwords means you don't have to give away system passwords. To make it easier to manage multiple remote systems, you can give your keys any arbitrary names you want when you create them, like this:
$ ssh-keygen -t rsa -f id_apacheserverWhen you connect, you simply name the correct key:
$ ssh -i id_apacheserver email@example.comFinally, don't forget the wonderful sshfs command for mounting an entire remote filesystem. It's much faster and easier than setting up a Samba or NFS server. First, create a local directory for the mountpoint, then fetch your remote filesystem:
$ sshfs hostname:/remotedir localdir/Now, you can operate on the remote files as if they were local.
Article courtesy of ServerWatch.com
Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.
- 1Linux Top 3: Alienware, KDE and Ubuntu 13.04
- 2Linux Top 3: Linux Mint Olivia, Fedora 19's Cat and Ubuntu's Mission Accomplished Moment
- 3GNOME 3.8 Debuts New Open Source Linux Desktop
- 4Linux Top 3: Linux 3.10 Goes Long, Linux 3.11 Advances as LXDE Merges
- 5Linux Top 3: Ubuntu Kaylin, Debian Wheezy and Linux Mint