nfs

Unterabschnitte von Exports

ssh

ssh-schlüssel tauschen:

  #### wenn noch kein ssh-key:
        ssh-keygen
  #### dann:
        cat ~/.ssh/id_rsa.pub | ssh pi@office "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

pub key copy in zwischenablage:

ssh-keygen
pbcopy < ~/.ssh/id_rsa.pub

oder

xclip < ~/.ssh/id_rsa.pub

oder

cat ~/.ssh/id_rsa.pub

nfs

sudo apt update && sudo apt install nfs-kernel-server -y sudo apt update && sudo apt install nfs-common -y

snippet Bemerkung
showmount -e nas Freigaben abfragen
sudo mkdir ~/mnt/nas_homes_nfs
sudo mount -t nfs -o vers=4 nas:/homes /nas_homes_nfs/ bei Version3 = uid muss passen oder mappen
mount | grep nfs
mount -t nfs -o uid=1000,gid=1000,tcp,rw :/path/to/export /mnt/freenasMnt
Quellen