Ssh

From Torben's Wiki
Jump to: navigation, search


Use ssh-keygen to create private and public keys in the folder ~/.ssh/

ssh-keygen -t dsa

Just leave the passphrase empty (=ENTER)
The public key is in the file ~/.ssh/id_dsa.pub

On the host machine append your public key to ~/.ssh/authorized_keys (you may have to create this file)

Mount using ssh

apt-get install sshfs

now you can run

/usr/bin/sshfs -o idmap=user server:/home/USER /mount/DIR

The option idmap=user is important to map the servers and clients user id

(this does not work from fstab...)