Copy Public Key To Host In One Line
ssh username@host "echo `cat ~/.ssh/id_dsa.pub` >> ~/.ssh/authorized_keys"
11340 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
ssh username@host "echo `cat ~/.ssh/id_dsa.pub` >> ~/.ssh/authorized_keys"
dir_listing = `ssh 192.168.1.10 'ls */ -d'` dir_listing.each { |directory| puts directory.chop.chop }
rsync -a -e ssh source/ username@remotemachine.com:/path/to/destination/
tar -zcvf <new_tar_filename>.tar.gz <filename/directory>
mkdir -p ~/mnts/formandfx sshfs kmarsh@formandfx.com: ~/mnts/formandfx -oping_diskarb,volname=formandfx
ssh -N -L <port_number>:127.0.0.1:3306 remote_machine
Source: ssh-keygen -t dsa Type this once per log-in session
Source: Now copy the .ssh/id_dsa.pub file to <Destination>.
Source: scp .ssh/id_dsa.pub userid@<Destination>:tempid we've renamed it tempid.
Destination: cat tempid >> .ssh/authorized_keys
add the contents of tempid to .ssh/authorized_keys.
Destination: rm tempid.
ssh-keygen -t dsa ssh user@host 'cat >> .ssh/authorizedkeys' < .ssh/id_dsa.pub
wget -rc --level=20 ftp://username:password@olddomain.net/public_html
mysqldump -h oldhost -u oldusername -poldpassword olddbname | mysql -h newhost -u newusername -pnewpassword newdbname