I have a TrueNAS NAS smb share. My TrueNAS user settings have password disabled and I have added my SSH public key. I can SSH into the NAS using my private key with no issues. However, I am trying to figure out how to mount an SMB share to my linux machine.
//nasdomain/share /mnt/nas/share cifs username=nasusername,uid=linuxusername,gid=linuxusername 0 0
When I run
sudo mount -a, I am promted to login to the share as
nasusername. How do I login using my private key?
Is it possible to even login using key-pairs or does SMB only support user/pass? If impossible, what's the goto NAS fileshare that can use key-pairs?