You are not logged in.
I got ssh up and running flawlessly, but i have some problems with sshfs.
Following the arch linux wiki, i installed sshfs. Then it told me to add myself to the 'fuse' group, but gpasswd says that the group doesn't exist.
After that i've tried to connect and failed with the infamous 'read: connection reset by peer' error. Whole output is
╔═[hatten@prinplup]═[20:11:43 Sat Oct 24]═[~]
╚═══[$]> sshfs -odebug,sshfs_debug,loglevel=debug hatten@192.168.1.3:/home/hatten /home/hatten/test
SSHFS version 2.2
executing <ssh> <-x> <-a> <-oClearAllForwardings=yes> <-ologlevel=debug> <-2> <hatten@192.168.1.3> <-s> <sftp>
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.1.3 [192.168.1.3] port 22.
debug1: Connection established.
debug1: identity file /home/hatten/.ssh/id_rsa type -1
debug1: identity file /home/hatten/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.1.3' is known and matches the RSA host key.
debug1: Found key in /home/hatten/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/hatten/.ssh/id_rsa
debug1: Trying private key: /home/hatten/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
Password:
debug1: Authentication succeeded (keyboard-interactive).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending subsystem: sftp
subsystem request failed on channel 0
read: Connection reset by peer
but i bet that's irrelevant as i haven't joined the fuse group, do i have to create it myself or is there an error with the package?
Offline
Fuse is a kernel module that sshfs is based on. To see if the fuse module is running, do a
$ lsmod
and see if fuse is listed. To manually start the module, as root:
# modprobe fuse
To autostart fuse at bootup (Recommended) add fuse to the "MODULES" line of /etc/rc.conf file as such
MODULES=(fuse)
It's not necessary nor recommended to create a fuse "group"
Pudge
Last edited by Pudge (2009-10-25 02:01:17)
Offline
fuse is up and running as a module, but if you don't need to join the fuse group then what is the error?
Offline
$ groups
wheel log mpd video audio optical storage scanner camera power users
I have no fuse group, sshfs works beautifully here.
I think your problem lies with
subsystem request failed on channel 0
I googled it but didn't find anything meaningful though.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
I'm not on the fuse group either and I don't have the fuse module loaded and it still works just fine.
Check /etc/ssh/sshd_config on the remote machine and look at the end of the file you should have something like
# override default of no subsystems
Subsystem sftp /usr/lib/ssh/sftp-server
if you are using arch. If you are using other distros then it will probably be different, but make sure the path to sftp-server is correct.
You can also try what they say here http://forums.debian.net/viewtopic.php?f=5&t=42818
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
Thanks rookie, that fixed it. Seems i had commented it myself for some reason.
Offline