That command should read
Code:
ssh -i /path/to/your/privatekey your_username@yourdomain.com
To use sshfs you need to install the package, the command to install it is
Code:
sudo apt-get install sshfs
then to mount a remote host as the directory /mnt (your mount point) (you can use any directory you like even ones with stuff in - it will not write over the top of them the contents will just be invisible until you umount). Note the -o ssh_command... option should not be necessary if you have loaded your key using ssh-add /path/to/your/privatekey .
Code:
sshfs username@remotehost.com:/folder/in/remotehost /mnt -o ssh_command='ssh -i /path/to/your/privatekey'
to unmount where /mnt is your mount point:
I prefer to use a mount point in my home directory. e.g. /home/username/mnt/ and use that as my mountpoint instead
Bookmarks