Okay, just solved the issue.
Thing is that I executed sshfs
command via sudo
, as root, so my user environment (SSH_* variables) wasn't accessible to root so I added my user SSH enviroment variables to sudoers
file:
Defaults env_reset
Defaults env_keep += "EDITOR BORG_REPO BORG_PASSPHRASE BORG_RSH VISUAL SHELL LSCOLORS LS_COLORS LESS LESSCHARSET LESSEDIT LANG SSH_AUTH_SOCK SS
H_CLIENT SSH_CONNECTION SSH_TTY"
After logging in again and running sshfs as root my keys were forwarded to the server properly.
Not sure if this is the most secure thing in the world but I'm open to suggestions to solve this properly.