From owner-freebsd-questions@FreeBSD.ORG Thu May 22 07:12:43 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED6A637B401 for ; Thu, 22 May 2003 07:12:43 -0700 (PDT) Received: from mx1.clickcom.com (mx2.clickcom.com [209.198.22.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47D0443F75 for ; Thu, 22 May 2003 07:12:43 -0700 (PDT) (envelope-from jsmailing@clickcom.com) Received: from aesop (calefaction.clickcom.com [209.198.22.19]) by mx1.clickcom.com (email) with ESMTP id B1687CAFCF for ; Thu, 22 May 2003 10:12:42 -0400 (EDT) From: "John Straiton" To: Date: Thu, 22 May 2003 10:13:16 -0400 Message-ID: <002601c3206c$4cf11290$1916c60a@win2k.clickcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 Importance: Normal Subject: FW: SCP problems - SOLVED [kinda- see below] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 May 2003 14:12:44 -0000 -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of John Straiton Sent: Wednesday, May 21, 2003 5:24 PM To: freebsd-questions@FreeBSD.ORG Subject: SCP problems Here's one that I haven't found too much help with today... 2 machines. I have successfully set up the whole id_rsa/authorized_keys thing so that "testuser" can ssh from HOST1 to HOST2 without being prompted for a password. Now I'm trying to get scp to work in the same manner. On HOST1: #su testuser %ssh HOST2 Last login: Wed May 21 15:01:36 2003 from ...... (etc..works good =)..Then I exit back to HOST1 and try: ) %scp testuser@HOST2:/tmp/file.txt /tmp/ protocol error: mtime.sec not delimited Umm...say what? The only thing I found in google was something about setting the TERM variable, so I tried echo $TERM and verified that it was set to vt100. HOST1: FreeBSD 4.8-PRERELEASE OpenSSH_3.5p1 FreeBSD-20030201, SSH protocols 1.5/2.0, OpenSSL 0x0090700f HOST2: FreeBSD 4.8-STABLE (updated today) OpenSSH_3.5p1 FreeBSD-20030201, SSH protocols 1.5/2.0, OpenSSL 0x0090701f Suggestions? ================================================= I found an article in comp.unix.questions talking about how the .cshrc file might have enviroment preferences before it's interactive shell checks which would cause the mtime error. Come to find that I had disabled the shell for the HOST2 as I didn't need that functionality. With the shell disabled, I would get that error message. With it set, I can scp just fine. Would the appropriate setup then be to just have the .cshrc exit as early as possible that will still allow this to work or what? I really don't want to worry about people having another avenue into the machine if possible. John Straiton jks@clickcom.com Clickcom, Inc 704-365-9970x101