Hi.

I just downloaded and compiled OpenSSH 2.9p1 on my machine, but it
seems as though it fails:

sshd is started with: ./sshd -d -d -D -p 1022
ssh is started with: ./ssh -v -p 1022 -a -k -x <hostname>

sshd output is:

debug1: Seeding random number generator
debug1: sshd version OpenSSH_2.9p1
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: Bind to port 1022 on 0.0.0.0.
Server listening on 0.0.0.0 port 1022.
Generating 768 bit RSA key.
RSA key generation complete.
debug1: Server will not fork when running in debugging mode.
Connection from <ip-address> port 4177
debug1: Client protocol version 1.5; client software version OpenSSH_2.9p1
debug1: match: OpenSSH_2.9p1 pat ^OpenSSH
debug1: Local version string SSH-1.5-OpenSSH_2.9p1
debug1: Rhosts Authentication disabled, originating port not trusted.
debug1: Sent 768 bit server 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 simpsons.
debug1: temporarily_use_uid: 43750/43791 (e=0)
debug1: restore_uid
Failed rsa for simpsons from <ipaddress> port 4177
debug1: temporarily_use_uid: 43750/43791 (e=0)
debug1: restore_uid
Failed rsa for simpsons from <ipaddress> port 4177
Accepted password for simpsons from <ipaddress> port 4177
debug1: session_new: init
debug1: session_new: session 0
debug1: Allocating pty.
debug2: tty_parse_modes: ospeed 38400
debug2: tty_parse_modes: ispeed 38400
debug2: tty_parse_modes: 1 3
<snip>
... There is *alot* of these tty_parse_modes: x y
<snip>
debug2: tty_parse_modes: 93 0
debug1: Setting controlling tty using TIOCSCTTY.
debug1: Entering interactive session.
debug1: fd 3 setting O_NONBLOCK
debug1: fd 7 IS O_NONBLOCK
debug1: server_init_dispatch_13
debug1: server_init_dispatch_15
debug1: End of interactive session; stdin 0, stdout (read 126, sent 126), stderr 0 
bytes.
Disconnecting: Command terminated on signal 11.
debug1: Calling cleanup 0x8057a94(0x810f7e0)
debug1: pty_cleanup_proc: /dev/pts/4
debug1: Calling cleanup 0x8068020(0x0)

And ssh output is:

OpenSSH_2.9p1, SSH protocols 1.5/2.0, OpenSSL 0x0090600f
debug1: Reading configuration data /pack/openssh-2.9p1/etc/ssh_config
debug1: Seeding random number generator
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: restore_uid
debug1: ssh_connect: getuid 43750 geteuid 43750 anon 1
debug1: Connecting to <hostname> <ipaddress> port 1022.
debug1: temporarily_use_uid: 43750/43791 (e=43750)
debug1: restore_uid
debug1: temporarily_use_uid: 43750/43791 (e=43750)
debug1: restore_uid
debug1: Connection established.
debug1: read PEM private key done: type RSA
debug1: identity file /home/simpsons/.ssh/identity type 0
debug1: identity file /home/simpsons/.ssh/id_rsa type -1
debug1: identity file /home/simpsons/.ssh/id_dsa type -1
debug1: Remote protocol version 1.5, remote software version OpenSSH_2.9p1
debug1: match: OpenSSH_2.9p1 pat ^OpenSSH
debug1: Local version string SSH-1.5-OpenSSH_2.9p1
debug1: Waiting for server public key.
debug1: Received server public key (768 bits) and host key (1024 bits).
debug1: Host 'bart.aalk.auc.dk' is known and matches the RSA1 host key.
debug1: Found key in /home/simpsons/.ssh/known_hosts:72
debug1: Encryption type: 3des
debug1: Sent encrypted session key.
debug1: Installing crc compensation attack detector.
debug1: Received encrypted confirmation.
debug1: Trying RSA authentication via agent with 'simpsons@host'
debug1: Server refused our key.
debug1: RSA authentication using agent refused.
debug1: Trying RSA authentication with key 'simpsons@host'
debug1: Server refused our key.
debug1: Doing password authentication.
simpsons@<hostname>'s password: 
debug1: Requesting pty.
debug1: Requesting shell.
debug1: Entering interactive session.
Received disconnect from <ipaddress>: Command terminated on signal 11.
debug1: Calling cleanup 0x80530bc(0x0)
debug1: Calling cleanup 0x8065050(0x0)

My OpenSSH is compiled with:
./configure --prefix=/pack/openssh-2.9p1 \
--cache-file=/dev/null \
--with-tcp-trappers \
--with-ssl-dir=/afs/ies.auc.dk/sw/pack/openssl-0.9.6 \
--with-afs=/afs/ies.auc.dk/sw/pack/afsws \
--with-ipv4-default \
--with-cflags=-I/afs/ies.auc.dk/user/simpsons/temp/public/pack/krb4-1.0.8/include \
--with-ldflags=-L/afs/ies.auc.dk/sw/released/lib \
--with-kerberos4=/afs/ies.auc.dk/user/simpsons/temp/public/pack/krb4-1.0.8 \
--with-afs=/afs/ies.auc.dk/sw/pack/afsws

Configuring seems ok. I've edited the Makefile because -ldes was
figuring twice.
> From Makefile:
LIBS=-lkafs -lresolv -ldes -lkrb -lz -lnsl  -lutil -lcrypto -lcrypt -ldes

I've removed the first -ldes, then it compiles, if I remove the latter
one, then it won't compile.

My system is:
Debian woody, kernel 2.4.3 (have tried other machines, no luck.)
OpenSSL 0.96a
zlib 1.1.3
krb4-1.0.8
Transarc AFS client (with includes etc)

I can't see where it goes wrong.

Does anyone know what I can do?

Regards
Thomas

Reply via email to