mounting ssh over the network prompt for password everytime
I set up a mount point over an ssh using sshfs. I added this to fstab file
Code:
sshfs#user@192.168.10.10:/home/user /media/ssh fuse user 0 0 Code:
sudo mount -a Code:
ssh-keygen |
Hi,
I suggest you try to get this working just with ssh and then once that works, you can try using sshfs. So, standard approach: Code:
ssh -vvvv user@192.169.10.10 Finally if you still cant work it out you should run an instance of sshd in debug mode. There are many threads here on LQ that cover debugging ssh connection problems. Evo2. |
Quote:
Code:
ssh user@hostname Code:
sudo sshfs user@hostname:/home/user /media/share |
Hi,
Quote:
Quote:
Evo2. |
yes, I know, but I thought that sshfs needed sudo priviliges.... anyways, I tried running without sudo and still didn't work, and it was b/c of permission /media/share was created with sudo, so I had to give it the right permission in order to mount with sshfs..... but now it ask me for passphrase to my key... I guess that when I created the key, I entered a passphrase. I'm gonna have to recreate the key without passphrase... but I think I got it working. It was a permission issue
|
Hi,
you don't need sudo, you just need to change ownership or permissions of the mount point and to be a member of the fuse group. See /usr/share/doc/sshfs/README.Debian Evo2. |
Quote:
Code:
sshfs#user@192.168.10.10:/home/user /media/user fuse user 0 0 Code:
sudo mount -a |
the system's /etc/fstab acts like root.
for my xbmc machine i put the sshfs command in the users crontab as a @reboot declarative. |
Hi,
Quote:
Quote:
Evo2. |
Hi,
Quote:
Quote:
Code:
mount /media/user |
Hi,
one more thing. To prevent root from mounting /media/user, you should add the noauto option. Eg Code:
sshfs#user@192.168.10.10:/home/user /media/user fuse user,noauto 0 0 Code:
sshfs#user@192.168.10.10:/home/user /media/user fuse uid=XXXX,gid=YYYY 0 0 HTH, Evo2. |
http://www.linuxquestions.org/questi...6/#post5084489
heres mine: Code:
schneidz@xbmc:~$ cat .profile | tail |
All times are GMT -5. The time now is 04:16 AM. |