You are not logged in.
Hi
I cant seem to get an SFTP server to mount at boot without a password. I have set up a key pair between the client and server and that work for login with SSH, but doesnt work when mounting.
Normal SSH login to the server
═⮞ ssh 'cloud@192.168.1.2'
Linux raspberrypi 6.1.21+ #1642 Mon Apr 3 17:19:14 BST 2023 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Sep 2 15:07:06 2024 from 192.168.1.76
cloud@raspberrypi:~$
Mounting the drive with fstab
═⮞ sudo mount -a
cloud@192.168.1.2's password:
═⮞
/etc/fstab
cloud@192.168.1.2:/home/cloud/ /home/danny/cloud sshfs allow_other,_netdev 0 0
#####
Edit - I solved by adding IdentityFile="/home/danny/.ssh/id_ed25519"
Last edited by fozid (2024-09-02 14:38:38)
Offline