You are not logged in.

#26 2014-06-30 10:17:05

OdinEidolon
Member
From: Belluno - Italy
Registered: 2011-01-31
Posts: 498

Re: SSH keys and SSHFS automounting via fstab

anatolik wrote:
OdinEidolon wrote:

My RSA key does NOT have a password. So in theory I should not have to use any ssh agent, as per wiki:
"If your private key is encrypted with a passphrase"
mine is not. It just should NOT ask for any password at all!

Correct, ssh-agent (or gnome-keyring-daemon) is needed for keys encrypted with a passphrase. The idea that the user does not have access to unencripted key, only the agent keeps this information in a guarded memory area. If you don't use passphrase then you don't need the agent.

But make sure that if your systemd unit has SSH_AUTH_SOCK set then corresponding agent should exist and alive. Otherwise sshfs will fail trying to connect to the agent, even if your key does not have the passphrase.

Still it fails to work if I remove the Environment line, again I feel like the problem is very connected with the fact that I cannot SSH into the computers without entering the passowrd every time, as if the host computers disabled RSA login


Hardware: 2016 Dell XPS15 - matte FullHD - i5-6300HQ - 32GB DDR4 - Nvidia GTX960M - Samsung 840EVO 250GB SSD - 56Wh
Software: Plasma 5 - rEFInd - linux-ck - preload - prelink - verynice - psd - bumblebee

Offline

#27 2014-06-30 14:05:53

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: SSH keys and SSHFS automounting via fstab

I reread your initial post and you are saying that you cannot set-up public key authentication and server always asks you a password. Is it correct? If so sshfs automount will not work as it will ask you for a password but at the time of mounting by systemd it does not have a terminal - no way for you to enter the password.

One reason why pubkey does not work is that it might be disabled by your University computer administrator. Ask them if pubkey authentication is possible and try to setup password-less login from your terminal.


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

Board footer

Powered by FluxBB