You are not logged in.

#1 2009-12-29 15:08:07

jacko
Member
Registered: 2007-11-23
Posts: 840

[solved] netfs/sshfs failing on boot

ok I seem to have a very weird problem and I can not for the life of me figure out a solution.

I have ssh setup with rsa authentication, I am mounting the sshfs share in fstab according to the wiki.

sshfs#jasin@192.168.1.2:torrents/ /mnt/desktop fuse defaults,users,port=22000,reconnect,allow_other 0 0

On boot netfs fails with the error

Connection reset by peer.

But if I let kde finish loading and start a terminal and type in

/etc/rc.d/netfs start

it mounts just fine. This is where I don't understand why it will not mount when booting. Because I can not replicate the error once the machine is fully booted. I even tried the sleep 20 trick in netfs.

my daemon array looks like this.

DAEMONS=(syslog-ng acpid cpufreq crond hal !net-profiles net-auto-wireless rpcbind nfs-common oss fam sshd ntpd !avahi-daemon netfs)

Any idea is worth a shot so please amuse me smile

Solution: Delete the /root/.ssh/known_hosts file and then re-authenticate the host machine for root user locally. My known_hosts had two entries and the first entry was not available on the network. I assume this is the reason why netfs was failing. The rsa key of the only working host was the exact same before and after in the known_hosts file.

Last edited by jacko (2009-12-29 16:16:56)

Offline

Board footer

Powered by FluxBB