I am trying to establsih SFTP User rights at a server to only one folder, following the guidelines  here:http://www.esotech.org/resources/software/linux/creating-an-sftp-unix-group-with-chroot-jailingHowever, if I try to connect via nautilus /sftp as the respective user to the respective server, I simply get an:Oops, something went wrong! Unhandled error message: SSH program unexpectedly exited.If I try to connect via SSH as the respective User, I get an Connection to myserver.de closed  by remote host. Connection to myserver.de closed.What can I do?Edit: output of sftp -vvv user@serverOpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014debug1: Reading configuration data /etc/ssh/ssh_configdebug1: /etc/ssh/ssh_config line 19: Applying options for *debug2: ssh_connect: needpriv 0debug1: Connecting to server [xxx.xxx.xxx.xxx] port 22.debug1: Connection established.debug1: identity file /home/me/.ssh/id_rsa type -1debug1: identity file /home/me/.ssh/id_rsa-cert type -1debug1: identity file /home/me/.ssh/id_dsa type -1debug1: identity file /home/me/.ssh/id_dsa-cert type -1debug1: identity file /home/me/.ssh/id_ecdsa type -1debug1: identity file /home/me/.ssh/id_ecdsa-cert type -1debug1: identity file /home/me/.ssh/id_ed25519 type -1debug1: identity file /home/me/.ssh/id_ed25519-cert type -1debug1: Enabling compatibility mode for protocol 2.0debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-6+squeeze1debug1: match: OpenSSH_5.5p1 Debian-6+squeeze1 pat OpenSSH_5* compat 0x0c000000debug2: fd 3 setting O_NONBLOCKdebug3: load_hostkeys: loading entries for host server from file /home/me/.ssh/known_hostsdebug3: load_hostkeys: found key type RSA in file /home/me/.ssh/known_hosts:1debug3: load_hostkeys: loaded 1 keysdebug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-rsadebug1: SSH2_MSG_KEXINIT sentdebug1: SSH2_MSG_KEXINIT receiveddebug2: kex_parse_kexinit: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1debug2: kex_parse_kexinit: ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-rsa,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-dss-cert-v00@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,ssh-dss...debug2: mac_setup: setup hmac-md5debug1: kex: server->client aes128-ctr hmac-md5 nonedebug2: mac_setup: setup hmac-md5debug1: kex: client->server aes128-ctr hmac-md5 nonedebug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<3072<8192) sentdebug1: expecting SSH2_MSG_KEX_DH_GEX_GROUPdebug2: bits set: 1586/3072debug1: SSH2_MSG_KEX_DH_GEX_INIT sentdebug1: expecting SSH2_MSG_KEX_DH_GEX_REPLYdebug1: Server host key: RSA 27:07:a8:7c:a4:e5:e6:f2:0d:bf:ca:a6:f5:1e:30:91debug3: load_hostkeys: loading entries for host server from file /home/me/.ssh/known_hostsdebug3: load_hostkeys: found key type RSA in file /home/me/.ssh/known_hosts:1debug3: load_hostkeys: loaded 1 keysdebug3: load_hostkeys: loading entries for host xxx.xxx.xxx.xxx from file /home/me/.ssh/known_hostsdebug3: load_hostkeys: found key type RSA in file /home/me/.ssh/known_hosts:2debug3: load_hostkeys: loaded 1 keysdebug1: Host 'server' is known and matches the RSA host key.debug1: Found key in /home/me/.ssh/known_hosts:1debug2: bits set: 1552/3072debug1: ssh_rsa_verify: signature correctdebug2: kex_derive_keysdebug2: set_newkeys: mode 1debug1: SSH2_MSG_NEWKEYS sentdebug1: expecting SSH2_MSG_NEWKEYSdebug2: set_newkeys: mode 0debug1: SSH2_MSG_NEWKEYS receiveddebug1: Roaming not allowed by serverdebug1: SSH2_MSG_SERVICE_REQUEST sentdebug2: service_accept: ssh-userauthdebug1: SSH2_MSG_SERVICE_ACCEPT receiveddebug2: key: /home/me/.ssh/id_rsa ((nil)),debug2: key: /home/me/.ssh/id_dsa ((nil)),debug2: key: /home/me/.ssh/id_ecdsa ((nil)),debug2: key: /home/me/.ssh/id_ed25519 ((nil)),debug1: Authentications that can continue: publickey,passworddebug3: start over, passed a different list publickey,passworddebug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,passworddebug3: authmethod_lookup publickeydebug3: remaining preferred: keyboard-interactive,passworddebug3: authmethod_is_enabled publickeydebug1: Next authentication method: publickeydebug1: Trying private key: /home/me/.ssh/id_rsadebug3: no such identity: /home/me/.ssh/id_rsa: No such file or directorydebug1: Trying private key: /home/me/.ssh/id_dsadebug3: no such identity: /home/me/.ssh/id_dsa: No such file or directorydebug1: Trying private key: /home/me/.ssh/id_ecdsadebug3: no such identity: /home/me/.ssh/id_ecdsa: No such file or directorydebug1: Trying private key: /home/me/.ssh/id_ed25519debug3: no such identity: /home/me/.ssh/id_ed25519: No such file or directorydebug2: we did not send a packet, disable methoddebug3: authmethod_lookup passworddebug3: remaining preferred: ,passworddebug3: authmethod_is_enabled passworddebug1: Next authentication method: passworduser@server's password: debug3: packet_send2: adding 64 (len 59 padlen 5 extra_pad 64)debug2: we sent a password packet, wait for replydebug1: Authentication succeeded (password).Authenticated to server ([xxx.xxx.xxx.xxx]:22).debug2: fd 4 setting O_NONBLOCKdebug3: fd 5 is O_NONBLOCKdebug1: channel 0: new [client-session]debug3: ssh_session2_open: channel_new: 0debug2: channel 0: send opendebug1: Requesting no-more-sessions@openssh.comdebug1: Entering interactive session.debug1: channel 0: free: client-session, nchannels 1debug3: channel 0: status: The following connections are open:  #0 client-session (t3 r-1 i0/0 o0/0 fd 4/5 cc -1)debug1: fd 0 clearing O_NONBLOCKdebug3: fd 1 is not O_NONBLOCKConnection to server closed by remote host.Transferred: sent 2760, received 2264 bytes, in 0.0 secondsBytes per second: sent 468846.1, received 384589.7debug1: Exit status -1Couldn't read packet: Connection reset by peer
User Acces restrict to only one folder
ssh;users;chroot;sftp