From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 49978 invoked by alias); 26 Jan 2016 23:33:46 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 49965 invoked by uid 89); 26 Jan 2016 23:33:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=Prior, analyst, Analyst, authentication X-HELO: phishnet.tamug.edu Received: from phishnet.tamug.edu (HELO phishnet.tamug.edu) (184.174.192.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with SMTP; Tue, 26 Jan 2016 23:33:45 +0000 X-ASG-Debug-ID: 1453851222-071d9c100ebbd0f0001-w5GHUG Received: from mail.tamug.edu (cscashub.tamug.edu [165.91.133.107]) by phishnet.tamug.edu with ESMTP id o9MDJjO9XmZKwXqz for ; Tue, 26 Jan 2016 17:33:42 -0600 (CST) X-Barracuda-Envelope-From: maloneybw@tamug.edu X-Barracuda-Apparent-Source-IP: 165.91.133.107 Received: from MAILSTORE.tamug.edu ([fe80::f0b9:abca:d978:3dd0]) by cscashub.tamug.edu ([2002:a55b:856b::a55b:856b]) with mapi id 14.02.0387.000; Tue, 26 Jan 2016 17:33:42 -0600 From: Brendan Maloney To: "cygwin@cygwin.com" Subject: Issue Setting up SFTP/OpenSSH on Multiple PLatforms X-ASG-Orig-Subj: Issue Setting up SFTP/OpenSSH on Multiple PLatforms Date: Wed, 27 Jan 2016 04:53:00 -0000 Message-ID: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Barracuda-Connect: cscashub.tamug.edu[165.91.133.107] X-Barracuda-Start-Time: 1453851222 X-Barracuda-URL: http://184.174.192.41:8000/cgi-mod/mark.cgi X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.25945 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg00371.txt.bz2 I've done this once before (Prior to the posix user release of openssh) and= I had no problems setting up SFTP on a windows server.=A0 Now I'm trying t= o do it again and I'm running into nothing but weird problems.=A0 I followe= d the normal package installation and ran the ssh-host-config installer whi= ch seemed to run fine.=A0 Inititially I thought the POSIX change for users = would be great except that this is a domain machine and it allowed all of m= y domain users access to SFTP when I only wanted that access available to t= he local users I specified.=A0 Going back to my roots I created the /etc/gr= oup and /etc/passwd files to manage my user accounts.=A0=A0 Now here is whe= re it starts to get weird.=A0 By default now the users populate the passwd = file as +.=A0 When it's configured like this I cannot= successfully connect via sftp (I'm using Filezilla) to the server.=A0 What= I ended up having to do was manually edit the file and take out the "+" of the passwd file for the users I wanted to have access.=A0 Now = I can login to the server successfully, but weirdly enough this ONLY works = on a PC.=A0 I'm also trying to get a mac to connect (also using FIlezilla) = and it won't connect at all.=A0 I've also tried just using the sftp command= line tool in os x and it just immediately drops the connection.=A0 Ultimat= ely I'm trying to get some scripts migrated from running FTP on this server= to running SFTP.=A0 I'm using psftp on the windows machine which works jus= t fine (same as filezilla does) and it's able to run my batch script just f= ine.=A0 I was trying to do the same thing on the mac by using the sftp comm= and and setting up public/private key authentication (which I still haven't= figured out partly because I'm obviously having these other issues with th= e connection in the first place so it's really hard to test.=A0 It would be= great if there were some kind of log file on the Cygwin server so I could = see what was failing when the macs try to connect to SFTP and the PCs conne= ct successfully.=A0 I realize this is a lot but I'm not sure who to ask any= more and I'm really lost.=A0 I'm just a Systems Analyst and I don't work do= ing this kind of stuff everyday.it was just something I got tasked with doi= ng because I have the most linux/mac experience of anyone in my department = which after this little escapade feels like pretty much zero. Thanks in advance for the help Brendan -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple