sftp ls problem upgrading from 2.9.9p2 to 3.0.2p1 on Linux

David Parks dparks at davidparks.org
Mon Dec 17 11:51:18 EST 2001


	I am running two Red Hat 6.2 servers with the 2.2.16 kernel.  I am
running OpenSSH_2.9.9p2 (SSH proto 2) and OpenSSL 0.9.5a 1 on both with
no problems.  I am having problems upgrading to OpenSSH 3.0.2p1 on both
systems. After doing a gnu make installation, ssh works fine, but sftp
displays fourteen digit numbers instead of file names when you do an ls
listing of directory contents.  File transfers work properly in sftp. 
lls correctly displays local content.  This problem affects all 3.x
portable versions of OpenSSH, on my systems.  At one point, I was also
having problems with scp never terminating properly, but that problem
seems to have disappeared with this attempt/version.  

Compare the before:

sftp> ls
drwx------    3 account    account        4096 Dec 16 15:59 .
drwxr-xr-x    8 root     root             4096 Oct 23 01:05 ..
-rw-r--r--    1 account    account          24 Dec  3  2000 .bash_logout
-rw-r--r--    1 account    account         230 Dec  3  2000
.bash_profile
-rw-r--r--    1 account    account         124 Dec  3  2000 .bashrc
-rw-------    1 account    account         445 Dec 13 07:33
.bash_history
drwxrwxr-x    2 account    account        4096 Mar  8  2001 Mail
-rw-r--r--    1 account    account       28332 Dec  1 16:27
linux-2.2.20-ow1.tar.gz
-rw-r--r--    1 account    account    19605381 Dec  1 16:30
linux-2.2.20.tar.gz
-rw-r--r--    1 account    account      781092 Dec 16 15:59
openssh-3.0.2p1.tar.gz
sftp>

to the after:

sftp> ls
drwx------    3 account    account    17592186044416 Dec 16 17:01
drwx------    3 account    account    17592186044416 Dec 16 17:01
drwx------    3 account    account    17592186044416 Dec 16 17:01
sftp>


I use the following options when compiling.

#  CC="egcs" \
> CFLAGS="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentium
-march=pentium -fomit-frame-pointer -fno-exceptions" \
> ./configure \
> --prefix=/usr \
> --sysconfdir=/etc/ssh \
> --with-pam \
> --with-tcp-wrappers \
> --with-ipv4-default \
> --with-ssl-dir=/usr/include/openssl
...

OpenSSH has been configured with the following options:
                 User binaries: /usr/bin
               System binaries: /usr/sbin
           Configuration files: /etc/ssh
               Askpass program: /usr/libexec/ssh-askpass
                  Manual pages: /usr/man/manX
                      PID file: /var/run
        sshd default user PATH: /usr/bin:/bin:/usr/sbin:/sbin
      Random number collection: Device (/dev/urandom)
                Manpage format: doc
                   PAM support: yes
            KerberosIV support: no
             Smartcard support: no
                   AFS support: no
                 S/KEY support: no
          TCP Wrappers support: yes
          MD5 password support: no
   IP address in $DISPLAY hack: no
      Use IPv4 by default hack: yes
       Translate v4 in v6 hack: yes

              Host: i586-pc-linux-gnu
          Compiler: egcs
    Compiler flags: -O9 -funroll-loops -ffast-math -malign-double
-mcpu=pentium -march=pentium -fomit-frame-pointer -fno-exceptions -Wall
-Wpointer-arith -Wno-uninitialized
Preprocessor flags: -I/usr/include/openssl
      Linker flags: -L/usr/include/openssl
         Libraries: -lpam -ldl -lwrap -lutil -lz -lnsl  -lcrypto

PAM is enabled. You may need to install a PAM control file for sshd,
otherwise password authentication may fail. Example PAM control files
can be found in the contrib/ subdirectory

# make
# make install
# install -m644 contrib/redhat/sshd.pam /etc/pam.d/sshd

	Any suggestions?
Thanks...




More information about the openssh-unix-dev mailing list