Bug 1852 - Jail Root SCP not working
Summary: Jail Root SCP not working
Status: CLOSED WORKSFORME
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: scp (show other bugs)
Version: 5.1p1
Hardware: amd64 Linux
: P2 major
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-03 05:52 AEDT by Thomas
Modified: 2011-09-06 15:33 AEST (History)
0 users

See Also:


Attachments
SSHD Config (2.16 KB, text/plain)
2011-02-03 05:52 AEDT, Thomas
no flags Details
SCP Output (Debug Mode) (4.38 KB, text/plain)
2011-02-03 05:53 AEDT, Thomas
no flags Details
SFTP Output (203 bytes, text/plain)
2011-02-03 05:53 AEDT, Thomas
no flags Details
SSH Output (272 bytes, text/plain)
2011-02-03 05:54 AEDT, Thomas
no flags Details
SSHD (Messages File) (5.73 KB, text/plain)
2011-02-03 05:54 AEDT, Thomas
no flags Details
Jail Filelist (1.67 KB, text/plain)
2011-02-03 05:54 AEDT, Thomas
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas 2011-02-03 05:52:18 AEDT
Created attachment 1985 [details]
SSHD Config

Hi,

I configured OpenSSH on our company Box with a Jail Root,
Now I'am able to access this Server with SSH and SFTP but
if I try scp I get an unknwon user <userid> message.

I'll attach all log file summery I could get for you.

Thany you for every hint.
Comment 1 Thomas 2011-02-03 05:53:04 AEDT
Created attachment 1986 [details]
SCP Output (Debug Mode)
Comment 2 Thomas 2011-02-03 05:53:24 AEDT
Created attachment 1987 [details]
SFTP Output
Comment 3 Thomas 2011-02-03 05:54:03 AEDT
Created attachment 1988 [details]
SSH Output
Comment 4 Thomas 2011-02-03 05:54:31 AEDT
Created attachment 1989 [details]
SSHD (Messages File)
Comment 5 Thomas 2011-02-03 05:54:55 AEDT
Created attachment 1990 [details]
Jail Filelist
Comment 6 Thomas 2011-02-03 05:55:26 AEDT
- OS: SuSE Enterprise Server 11 SP 1
Comment 7 Thomas 2011-02-03 07:22:46 AEDT
Hi,

the Problem is solved. A lib was missing. strace whoami helped to solve it. 

Here is the current Filelist in my Jail.

May be the Manpage shoud contain a section with the mininum Files for sftp ssh and scp. Just as a hint.

./aquota.group~
./etc/nsswitch.conf
./etc/ld.so.cache
./etc/group
./etc/passwd
./aquota.user~
./aquota.group
./aquota.user
./bin/cp
./bin/rm
./bin/ln
./bin/groups
./bin/cat
./bin/ls
./bin/id
./bin/mv
./bin/dd
./bin/bash
./bin/su
./usr/bin/ssh-add
./usr/bin/ssh-copy-id
./usr/bin/ssh-agent
./usr/bin/ssh-keygen
./usr/bin/scp
./usr/bin/ssh-keyconverter
./usr/bin/ssh
./usr/bin/ssh-keyscan
./usr/bin/whoami
./usr/share/locale/locale.alias
./usr/lib64/libltdl.so.7
./usr/lib64/libkrb5.so.3
./usr/lib64/libk5crypto.so.3
./usr/lib64/libscconf.so.2
./usr/lib64/libkrb5support.so.0
./usr/lib64/libcrypto.so.0.9.8
./usr/lib64/libgssapi_krb5.so.2
./usr/lib64/ssh/sftp-server
./usr/lib64/ssh/ssh-keysign
./usr/lib64/ssh/ssh-askpass
./usr/lib64/ssh/x11-ssh-askpass
./usr/lib64/libopensc.so.2
./usr/lib64/libopenct.so.1
./lib64/libkeyutils.so.1
./lib64/libattr.so.1
./lib64/libnss_compat.so.2
./lib64/libselinux.so.1
./lib64/libutil.so.1
./lib64/libcom_err.so.2
./lib64/librt.so.1
./lib64/libpam_misc.so.0
./lib64/libncurses.so.5
./lib64/libacl.so.1
./lib64/libresolv.so.2
./lib64/libnsl.so.1
./lib64/libaudit.so.0
./lib64/libz.so.1
./lib64/libdl.so.2
./lib64/libreadline.so.5
./lib64/libpam.so.0
./lib64/libcrypt.so.1
./lib64/libc.so.6
./lib64/ld-linux-x86-64.so.2
./lib64/libpthread.so.0
./sbin/ldconfig
Comment 8 Damien Miller 2011-09-06 15:33:08 AEST
close resolved bugs now that openssh-5.9 has been released