This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ssh-keygen -t dsa | |
Generating public/private dsa key pair. | |
Enter file in which to save the key (/Users/fafhrd/.ssh/id_dsa): # Hit 'Return', if you have never created a key before, or the path to your new key -- yes, you can have more than 1. | |
Enter passphrase (empty for no passphrase): # NO! DO NOT HIT ENTER! ENTER A PASSPHRASE! | |
Please, type in a passphrase | |
Enter same passphrase again: # And again |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ /usr/bin/ssh-add -l | |
1024 XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX /Users/fafhrd/.ssh/id_dsa (DSA) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ /usr/bin/ssh-add -K ~/.ssh/id_dsa | |
Enter passphrase for /Users/fafhrd/.ssh/id_dsa: | |
Identity added: /Users/fafhrd/.ssh/id_dsa (/Users/fafhrd/.ssh/id_dsa) | |
$ /usr/bin/ssh-add -K ~/.ssh/id_rsa | |
Enter passphrase for /Users/fafhrd/.ssh/id_rsa: | |
Identity added: /Users/fafhrd/.ssh/id_rsa (/Users/fafhrd/.ssh/id_rsa) | |
$ /usr/bin/ssh-add -l | |
1024 XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX /Users/fafhrd/.ssh/id_dsa (DSA) | |
2048 XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX /Users/fafhrd/.ssh/id_rsa (RSA) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ssh-add -l | |
2048 XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX /Users/fafhrd/.ssh/id_rsa (RSA) | |
1024 XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX /Users/fafhrd/.ssh/id_dsa (DSA) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ssh myname@my.fake.com 'cat >> ~/.ssh/authorized_keys' < ~/.ssh/id_dsa.pub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ssh myname@my.fake.com "uname -a" | |
Linux my 2.6.32-24-server #42-Ubuntu SMP Fri Aug 20 15:38:55 UTC 2010 x86_64 GNU/Linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host *.fake.com | |
User myname |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ssh my.fake.com "uname -a" | |
Linux my 2.6.32-24-server #42-Ubuntu SMP Fri Aug 20 15:38:55 UTC 2010 x86_64 GNU/Linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MYDIR="$HOME/Projects/macfuse/repos" | |
mkdir -p $MYDIR | |
cd $MYDIR | |
svn co http://macfuse.googlecode.com/svn/trunk/filesystems/sshfs/binary sshfs-binaries | |
cd sshfs-binaries | |
sudo cp sshfs-static-leopard /usr/local/bin/sshfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VOLNAME=myremotehome | |
SRVNAME=my.fake.com | |
mkdir -p $HOME/Volumes/$VOLNAME | |
sshfs $SRVNAME: $HOME/Volumes/$VOLNAME -oauto_cache,reconnect,volname=$VOLNAME | |
# Did it work? | |
ls $HOME/Volumes/$VOLNAME | |
/sbin/umount $HOME/Volumes/$VOLNAME # or drag to eject button from desktop |
OlderNewer