You are not logged in.

#1 2018-11-01 19:58:58

schwim
Member
From: Western NC, US
Registered: 2015-09-29
Posts: 183
Website

[SOLVED] SSHFS filesystem "permission denied" and key not recognized

Hi there everyone!

I've used SSHFS to mount my remote webservers without issue.  It's never taken me more than installing SSHFS and placing the id_rsa.pub into the allowed_keys  file on the remote server then running:

#!/bin/bash
	sudo sshfs -o workaround=rename schw@schw.im:/home/schw /home/schwim/Remote/schw.im
exit 0

First issue is that it still asks me for my password in spite of having generated the key and storing the public key on the server.

Second issue is that I'm not allowed in the directory:

schwim@schwim-vm-bl:~/Remote$ ls -la
ls: cannot access schw.im: Permission denied
total 12
drwxr-xr-x  4 schwim schwim 4096 Nov  1 15:36 .
drwxr-xr-x 38 schwim schwim 4096 Nov  1 15:18 ..
d?????????  ? ?      ?         ?            ? schw.im
drwxr-xr-x  2 schwim schwim 4096 Oct 26 12:41 scotchandiron.org
schwim@schwim-vm-bl:~/Remote$

Can anyone help me sort these issues?

Thanks for your time!

Last edited by schwim (2018-11-01 20:14:36)


Schw.im! A social site with an identity crisis.

Offline

#2 2018-11-01 20:07:47

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 524

Re: [SOLVED] SSHFS filesystem "permission denied" and key not recognized

Why are you using 'sudo' in your script

sudo sshfs ...

It should work without 'sudo' and you should generally use 'sshfd' without 'sudo''. This might be the problem.

Last edited by iMBeCil (2018-11-01 20:13:25)


Postpone all your duties; if you die, you won't have to do them ..

Offline

#3 2018-11-01 20:13:59

schwim
Member
From: Western NC, US
Registered: 2015-09-29
Posts: 183
Website

Re: [SOLVED] SSHFS filesystem "permission denied" and key not recognized

That did the trick, thanks so much!


Schw.im! A social site with an identity crisis.

Offline

#4 2018-11-01 20:14:35

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 524

Re: [SOLVED] SSHFS filesystem "permission denied" and key not recognized

You're welcome, schwim  wink


Postpone all your duties; if you die, you won't have to do them ..

Offline

Board footer

Powered by FluxBB