From owner-freebsd-questions Sat Dec 29 17:16:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from academy.nsnet.cz (framiex.casablanca.cz [217.11.225.211]) by hub.freebsd.org (Postfix) with SMTP id B6B8437B417 for ; Sat, 29 Dec 2001 17:16:52 -0800 (PST) Received: (qmail 46548 invoked by uid 89); 30 Dec 2001 02:12:07 +0100 Message-ID: <20011230011207.46547.qmail@academy.nsnet.cz> From: "Guli" To: "freebsd-questions@FreeBSD.ORG" Subject: ssh + scp + ssh-dummy-shell Date: Sun, 30 Dec 2001 01:12:07 GMT Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi. I'm tying to use SCP with chroot i'm runing FreeBSD 4.4-STABLE #5: Wed Dec 12 20:11:23 CET 2001 i'v instaled SSH from ports (ssh-2.3.0) with added parameter --enable-static into Makefile then did all steb by step by http://www.ssh.com/products/ssh/administrator24/Using_Chroot_Manager__ssh-ch rootmgr_.html so first problem is when i run ssh-chrootmgr -h, or any other parameter it returns platan# ssh-chrootmgr -h /usr/local/bin/ssh-chrootmgr: 103: Syntax error: Bad fd number what does it mean? second, when i try to login with WinSCP2 login fail and i scpclient log is --------------------------------------- . Server version: SSH-1.99-2.3.0 SSH Secure Shell (non-commercial) . We claim version: SSH-2.0-PuTTY . Using SSH protocol version 2 . Host key fingerprint is: . 1024 d9:e1:92:af:0d:db:cd:8d:3d:4f:e9:2f:b4:d8:72:61 . Initialised zlib (RFC1950) compression . Initialised zlib (RFC1950) decompression . Initialised triple-DES client->server encryption . Initialised triple-DES server->client encryption . Opened channel for session . Started a shell/command . -------------------------------------------------------------------------- . Doing startup conversation with host (shell). . Skipping host startup message (if any). > echo "WinSCP: this is end-of-file:0" . All channels closed. Disconnecting . Getting current directory name. * (ESshFatal) Error getting name of current remote directory. --------------------------------------------------------------------------- the HOME/bin has '755 root.wheel" and HOME (/usr/home/mikulas) has '770 mikulas.www' there is the HOME/bin lrwxr-xr-x 1 root www 19 Dec 30 01:02 sftp-server -> sftp-server2.static -r-xr-xr-x 1 root wheel 258568 Dec 30 00:33 sftp-server2.static lrwxr-xr-x 1 root www 22 Dec 30 01:01 ssh-dummy-shell -> ssh-dummy-shell.static -r-xr-xr-x 1 root wheel 51264 Dec 30 00:32 ssh-dummy-shell.static where is the problem ? sorry for long message .... thanks a lot for any help. Jiri. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message