Re: [Wlug] sshfs + certificate files + fstab?
What userid is invoking sshfs? If its in /etc/fstab, and you're using a setuid /bin/mount, it might be looking for authorized_keys under the setuid id's homedir (root?). In which case, you might also want to add "-o allow_other", and double-check the other sshfs options. Since I'm the only user of my sytsem, I use a little script, do it all under my userid, and avoid /etc/fstab. -Jamie On Fri, 21 Sep 2007, Eric Stein wrote:
I already do this for normal ssh and it doesn't work for sshfs - I get queried for my password anyway.
Eric
Mike Leo wrote:
Create an ssh key on the local machine and put the public portion of it into the remote servers /home/user/.ssh/authorized_keys file then you can ssh(fs) without a password
Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
On Fri, 21 Sep 2007, Jamie Guinan wrote:
What userid is invoking sshfs? If its in /etc/fstab, and you're using a setuid /bin/mount, it might be looking for authorized_keys under the setuid id's homedir (root?).
And/or the setuid id's ${HOME}/.ssh/id_dsa on the local side. -Jamie
I could be wrong with this, but, while playing with Tomboy note syncing over ssh, one uses FUSE+sshfs, and for them to work, you need to have your key in a running instance of ssh-agent (any ssh agent will do i think). So, for it to work, ssh-agent has to be running for me @ login. This "might" be your issue. Then again I could be way off. On 9/21/07, Jamie Guinan <guinan@bluebutton.com> wrote:
On Fri, 21 Sep 2007, Jamie Guinan wrote:
What userid is invoking sshfs? If its in /etc/fstab, and you're using a setuid /bin/mount, it might be looking for authorized_keys under the setuid id's homedir (root?).
And/or the setuid id's ${HOME}/.ssh/id_dsa on the local side.
-Jamie _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
Could I get a look at that script? Eric Jamie Guinan wrote:
What userid is invoking sshfs? If its in /etc/fstab, and you're using a setuid /bin/mount, it might be looking for authorized_keys under the setuid id's homedir (root?).
In which case, you might also want to add "-o allow_other", and double-check the other sshfs options.
Since I'm the only user of my sytsem, I use a little script, do it all under my userid, and avoid /etc/fstab.
-Jamie
On Fri, 21 Sep 2007, Eric Stein wrote:
I already do this for normal ssh and it doesn't work for sshfs - I get queried for my password anyway.
Eric
Mike Leo wrote:
Create an ssh key on the local machine and put the public portion of it into the remote servers /home/user/.ssh/authorized_keys file then you can ssh(fs) without a password
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
participants (3)
-
Eric Stein
-
Jamie Guinan
-
Matt Nicholson