SSH: Misc Cheat Sheet

# Enforce a umask with SFTP
Subsystem sftp /usr/libexec/openssh/sftp-server -u 0002
# Parallel SSH on Debian
apt-get install pssh

=> using

pssh -h host_list.txt <command>
pssh -i -t 60 -h host_list.txt -- <command>   # 60s timeout, list output
# Clustered SSH on Debian
apt-get install clusterssh

=> using

cssh server1 server2
# Vim Remote File Editing:
vim scp:[email protected]//some/directory/file.txt
# Use GPG keys with SSH agent
monkeysphere subkey-to-ssh-agent -t 3600

Leave a Reply

Your email address will not be published. Required fields are marked *