From owner-freebsd-ports@FreeBSD.ORG Thu Apr 5 13:02:12 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5DCD316A403 for ; Thu, 5 Apr 2007 13:02:12 +0000 (UTC) (envelope-from jumper99@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id C707013C484 for ; Thu, 5 Apr 2007 13:02:11 +0000 (UTC) (envelope-from jumper99@gmx.de) Received: (qmail invoked by alias); 05 Apr 2007 13:02:10 -0000 Received: from unknown (EHLO wsa096) [193.101.155.96] by mail.gmx.net (mp051) with SMTP; 05 Apr 2007 15:02:10 +0200 X-Authenticated: #682707 X-Provags-ID: V01U2FsdGVkX1+O3apH2WiOZRSj1XuqAADKjqS7oTbzlA8FvimxVh t9CJo4Pm9reiBe Message-ID: <00bc01c77782$9ec430e0$609b65c1@vpe.de> From: "Helmut Schneider" To: References: <00a201c7777f$6d5de350$609b65c1@vpe.de> Date: Thu, 5 Apr 2007 15:02:08 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Y-GMX-Trusted: 0 Subject: Re: scponlyc X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2007 13:02:12 -0000 From: "Helmut Schneider" > currently I am very frustrated because I'm trying to get scponlyc > running. I successfully use it on OpenBSD for many years now. > > According to > http://lists.freebsd.org/pipermail/freebsd-questions/2007-January/139866.h > tml I mounted devfs to my jail: > > [root@orakel /usr/ports/shells/scponly]# mount | grep devfs > devfs on /dev (devfs, local) > devfs on /var/www/dev (devfs, local) > [root@orakel /usr/ports/shells/scponly]# > > I ran /usr/local/share/examples/scponly/setup_chroot.sh and created the > user and the jail. > > But when I try to connect using > - SSH Secure File Transfer > - WinSCP > - sftp > - ssh > - scp > I can't connect to the machine: > > [root@orakel /usr/ports/shells/scponly]# sftp dd@localhost > Connecting to localhost... > Password: > Connection closed > [root@orakel /usr/ports/shells/scponly]# chroot -u dd /var/www/ > /usr/libexec/sftp-server > ^C > [root@orakel /usr/ports/shells/scponly]# ssh dd@localhost > Password: > Last login: Thu Apr 5 14:30:50 2007 from localhost > Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 > The Regents of the University of California. All rights reserved. > > FreeBSD 6.2-RELEASE-p3 (SMP-GENERIC) #0: Thu Mar 22 23:34:02 CET 2007 > > Welcome to FreeBSD! > > [...] > > WinSCP: this is end-of-file:0 > ^CConnection to localhost closed. > [root@orakel /usr/ports/shells/scponly]# scp Makefile dd@localhost:/tmp/ > Password: > scponlyc in free(): error: junk pointer, too low to make sense > lost connection > [root@orakel /usr/ports/shells/scponly]# ls -la /var/www/tmp/ > total 4 > drwxrwxrwx 2 root daemon 512 Mar 26 13:21 . > dr-xr-xr-x 16 root daemon 512 Apr 5 13:52 .. > [root@orakel /usr/ports/shells/scponly]# > > scponly-4.6_1 is compiled from the ports with: > '-DWITH_SCPONLY_CHROOT', > '-DWITH_SCPONLY_SCP', > '-DWITH_SCPONLY_SFTP_LOGGING', > '-DWITH_SCPONLY_WINSCP', > > I am really depressed now, could someone please point me to a > enlightening place to bring back joy to my life? Forgot to attach: Apr 5 14:30:03 orakel sshd[85369]: Accepted keyboard-interactive/pam for dd from ::1 port 63279 ssh2 Apr 5 14:30:03 orakel sshd[85378]: subsystem request for sftp Apr 5 14:30:03 orakel scponly[85379]: running: /usr/libexec/sftp-server (username: dd(1002), IP/port: ::1 63279 22)