From mikedep333@gmail.com Sun May 10 20:02:33 2015 Received: (at submit) by bugs.x2go.org; 10 May 2015 18:02:35 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham version=3.3.2 Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180]) by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id E0CB25DA80 for ; Sun, 10 May 2015 20:02:32 +0200 (CEST) Received: by lbbuc2 with SMTP id uc2so80628725lbb.2 for ; Sun, 10 May 2015 11:02:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=3ZDusrPDzqSiFCa6j7fj2/2eRoR5vs0w9BZsJCQsiA0=; b=EWqG/O25GNk9kR58qyeTlQIjVemfhMQPQt2VWu1d0EIN+sSQt11tgNorSZ2UQi0D3Q Ms4IYJN4vvYaWrahXyw6QKmStr8+p4w7rUpfYPr6a9ZuiHTFWqeagCse/zVWMMPAp6mh aGirl0r7CQ4bwG7qIRQ8J2Cr1JJGPDtkoQuANCe2/LWOiVusB/w8M1lX/ARpwS0Y5/Hc dDrBC55601CHEpfXsaAIvDQ2Sd/Q70lQ2mwW0vx12M3Z8D4kJOPcp8eDBRMY2Jct4Fcc DXQs0qOdTZWJuWNueG1ARSXIWYqJHJyrvf/p4N4B3MkX9ajZ/HMFR1RJTZ3QLWfLw48Q H+Jg== MIME-Version: 1.0 X-Received: by 10.112.168.165 with SMTP id zx5mr5295907lbb.111.1431280951996; Sun, 10 May 2015 11:02:31 -0700 (PDT) Received: by 10.152.23.10 with HTTP; Sun, 10 May 2015 11:02:31 -0700 (PDT) Date: Sun, 10 May 2015 14:02:31 -0400 Message-ID: Subject: "connection failed" "pscp" error with folder sharing From: Michael DePaulo To: "submit@bugs.x2go.org" Content-Type: text/plain; charset=UTF-8 Package: x2goclient Version: 4.0.3.2 Tags: build-win32 When the following conditions are met: 1. You are using X2Go Client for Windows 2. You are using Kerberos 5 (GSSAPI) authentication 3. Your server-side home directory is at a path other than /home/$USER Upon connecting to an X2Go server, whether you have any folders shared or not, you receive an error like: Connection failed pscp: unable to open /home/mike/.x2go/ssh/key.dK7060: no such file or directory ("Connection failed" is bolded) Furthermore, shared folders are not actually shared. If you attempt to share a folder after connecting, you receive the same error message. This bug appears to be a limitation of when Kerberos (GSSAPI) authentication was originally introduced in x2goclient 4.0.1.2. It was introduced in commit a77d761d on 2013-12-10. I will push a commit that fixes this bug. However, it overrides all paths like "~user" with "~". In other words, it assumes that SshProcess::start_cp() will never be used to upload a file to another user's home dir, unless that other user's home dir is specified absolute. As a side note, this bug is present under the default configuration of SAMBA's winbind, which does support kerberos authentication. By default, smb.conf has set: template homedir = /home/%D/%U Where %D is the domain name, and %U is the username.