hi,
let me start by saying ive tried everything i can think of with the
--with-default-path configure flag.
USER_PATH in config.h is correctly getting the value of this flag.
i am installing to the default locations (user binaries to /usr/local/bin).
ssh works fine, (after i did the LIBS=-lcrypt thing) but now, no matter what i
do, i get "sh: scp: command not found" whenever i try to scp. i can
think of nothing more to do...send help.
here are the details:
LIBS=-lcrypt ./configure --with-default-path=/usr/local/bin:/usr/bin:/bin
OpenSSH configured has been configured with the following options.
User binaries: /usr/local/bin
User binaries: /usr/local/bin
System binaries: /usr/local/sbin
Configuration files: /usr/local/etc
Askpass program: /usr/local/libexec/ssh-askpass
Manual pages: /usr/local/man/manX
PID file: /var/run
Random number collection: Device (/dev/urandom)
Manpage format: man
PAM support: no
KerberosIV support: no
AFS support: no
S/KEY support: no
TCP Wrappers support: no
MD5 password support: no
IP address in $DISPLAY hack: no
Use IPv4 by default hack: no
Translate v4 in v6 hack: yes
Host: i686-pc-linux-gnu
Compiler: /usr/local/egcs-1.1.2/bin/gcc
Compiler flags: -g -O2 -Wall -I. -I. -I/usr/local/ssl/include
Linker flags: -L/usr/local/ssl/lib -L/usr/local/ssl
Libraries: -lnsl -lz -lcrypt -lutil -lcrypto
config.h:#define USER_PATH "/usr/local/bin:/usr/bin:/bin"
-rwxr-xr-x 1 root root 20704 Feb 13 13:33 /usr/local/bin/scp
-rws--x--x 1 root root 664308 Feb 13 13:33 /usr/local/bin/ssh
-rwxr-xr-x 1 root root 613592 Feb 13 13:33 /usr/local/sbin/sshd
/usr/local/sbin/sshd -d -d -d
debug1: sshd version OpenSSH_2.3.0p1
debug1: Seeding random number generator
debug1: read DSA private key done
debug1: Seeding random number generator
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
Generating 768 bit RSA key.
debug1: Seeding random number generator
debug1: Seeding random number generator
RSA key generation complete.
debug1: Server will not fork when running in debugging mode.
Connection from xxx.xxx.xxx.xxx port 972
debug1: Client protocol version 1.5; client software version OpenSSH_2.3.0p1
debug1: no match: OpenSSH_2.3.0p1
debug1: Local version string SSH-1.99-OpenSSH_2.3.0p1
debug1: Sent 768 bit public key and 1024 bit host key.
debug1: Encryption type: 3des
debug1: Received session key; encryption turned on.
debug1: Installing crc compensation attack detector.
debug1: Attempting authentication for john.
Failed rsa for john from xxx.xxx.xxx.xxx port 972
Accepted password for john from xxx.xxx.xxx.xxx port 972
debug1: session_new: init
debug1: session_new: session 0
debug1: Exec command 'scp -f whoo.jpg'
debug1: Entering interactive session.
debug1: fd 7 setting O_NONBLOCK
debug1: fd 7 IS O_NONBLOCK
debug1: fd 9 setting O_NONBLOCK
debug1: server_init_dispatch_13
debug1: server_init_dispatch_15
debug1: Received SIGCHLD.
debug1: End of interactive session; stdin 1, stdout (read 0, sent 0), stderr 194
bytes.
debug1: Command exited with status 127.
debug1: Received exit confirmation.
Closing connection to xxx.xxx.xxx.xxx
on the client side, i just get the scp not found error after i authenticate.
i just went from ssh-1.2.27 to openssh-2.3.0p1 on a bunch of hosts...i'd
hate to have to go back...
-j
what is reported when you run ssh <yourhost> echo \$PATH ? --lpr On Mon, 12 Feb 2001, john wrote:> hi, > let me start by saying ive tried everything i can think of with the --with-default-path configure flag. > > USER_PATH in config.h is correctly getting the value of this flag. > > i am installing to the default locations (user binaries to /usr/local/bin). > > ssh works fine, (after i did the LIBS=-lcrypt thing) but now, no matter what i do, i get "sh: scp: command not found" whenever i try to scp. i can think of nothing more to do...send help. > > here are the details: > > LIBS=-lcrypt ./configure --with-default-path=/usr/local/bin:/usr/bin:/bin > > OpenSSH configured has been configured with the following options. > User binaries: /usr/local/bin > User binaries: /usr/local/bin > System binaries: /usr/local/sbin > Configuration files: /usr/local/etc > Askpass program: /usr/local/libexec/ssh-askpass > Manual pages: /usr/local/man/manX > PID file: /var/run > Random number collection: Device (/dev/urandom) > Manpage format: man > PAM support: no > KerberosIV support: no > AFS support: no > S/KEY support: no > TCP Wrappers support: no > MD5 password support: no > IP address in $DISPLAY hack: no > Use IPv4 by default hack: no > Translate v4 in v6 hack: yes > > Host: i686-pc-linux-gnu > Compiler: /usr/local/egcs-1.1.2/bin/gcc > Compiler flags: -g -O2 -Wall -I. -I. -I/usr/local/ssl/include > Linker flags: -L/usr/local/ssl/lib -L/usr/local/ssl > Libraries: -lnsl -lz -lcrypt -lutil -lcrypto > > config.h:#define USER_PATH "/usr/local/bin:/usr/bin:/bin" > > -rwxr-xr-x 1 root root 20704 Feb 13 13:33 /usr/local/bin/scp > -rws--x--x 1 root root 664308 Feb 13 13:33 /usr/local/bin/ssh > -rwxr-xr-x 1 root root 613592 Feb 13 13:33 /usr/local/sbin/sshd > > /usr/local/sbin/sshd -d -d -d > debug1: sshd version OpenSSH_2.3.0p1 > debug1: Seeding random number generator > debug1: read DSA private key done > debug1: Seeding random number generator > debug1: Bind to port 22 on 0.0.0.0. > Server listening on 0.0.0.0 port 22. > Generating 768 bit RSA key. > debug1: Seeding random number generator > debug1: Seeding random number generator > RSA key generation complete. > debug1: Server will not fork when running in debugging mode. > Connection from xxx.xxx.xxx.xxx port 972 > debug1: Client protocol version 1.5; client software version OpenSSH_2.3.0p1 > debug1: no match: OpenSSH_2.3.0p1 > debug1: Local version string SSH-1.99-OpenSSH_2.3.0p1 > debug1: Sent 768 bit public key and 1024 bit host key. > debug1: Encryption type: 3des > debug1: Received session key; encryption turned on. > debug1: Installing crc compensation attack detector. > debug1: Attempting authentication for john. > Failed rsa for john from xxx.xxx.xxx.xxx port 972 > Accepted password for john from xxx.xxx.xxx.xxx port 972 > debug1: session_new: init > debug1: session_new: session 0 > debug1: Exec command 'scp -f whoo.jpg' > debug1: Entering interactive session. > debug1: fd 7 setting O_NONBLOCK > debug1: fd 7 IS O_NONBLOCK > debug1: fd 9 setting O_NONBLOCK > debug1: server_init_dispatch_13 > debug1: server_init_dispatch_15 > debug1: Received SIGCHLD. > debug1: End of interactive session; stdin 1, stdout (read 0, sent 0), stderr 194 bytes. > debug1: Command exited with status 127. > debug1: Received exit confirmation. > Closing connection to xxx.xxx.xxx.xxx > > on the client side, i just get the scp not found error after i authenticate. > i just went from ssh-1.2.27 to openssh-2.3.0p1 on a bunch of hosts...i'd hate to have to go back... > -j
Apparently Analagous Threads
- SSH2/1 Failure when using bash shell, other shells work
- Problem with OpenSSH 2.3.0p1 and Linux kernel 2.4.1pre8 (Disconnecting: fork failed: Resource temporarily unavailable)
- openssh-2.3.0p1 (Linux) fails using options with dss key
- problem with openssh-2.3.0p1 and pam-0.72-20.6.x under Redhat 6.1
- couple of questions