Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | mmap failure (???) causes my SSH installation to not work? |
|---|---|
| Date: | Wed, 15 Sep 2004 00:11:11 +0200 |
I am really stuck with my OpenSSH installation. I got it to compile on my RedHat 6.1 machine (kernel 2.2.12-20 IP: 192.168.1.3 "yoda") with freshly compiled zlib 1.2.1 and openssl-0.9.7d. This machine is my internet gateway and has a firewall with an open port 22.
./configure with:
--sysconfdir=/etc/ssh --with-pam (I have an empty /etc/pam.d exept for the selfinstalle sshd pam-file from contrib/redhat/ ) --with-md5-passwords(since there are $1$ entries in /etc/shadow) --with-4in6 --with-tcp-wrappers
Started sshd in debugging mode, however I cannot connect to the ssh server with a ssh-client. The debugging messages are below.
Output from ssh -vvv on 192.168.1.1 (obi-wan)
OpenSSH_3.4p1 Debian 1:3.4p1-1.woody.3, SSH protocols 1.5/2.0, OpenSSL 0x0090603f debug1: Reading configuration data /etc/ssh/ssh_config debug1: Rhosts Authentication disabled, originating port will not be trusted. debug1: ssh_connect: needpriv 0 debug1: Connecting to 192.168.1.3 [192.168.1.3] port 22. debug1: Connection established. debug2: key_type_from_name: unknown key type '-----BEGIN' debug2: key_type_from_name: unknown key type 'Proc-Type:' debug2: key_type_from_name: unknown key type 'DEK-Info:' debug2: key_type_from_name: unknown key type '-----END' debug1: identity file /home/erw/.ssh/id_rsa type 1 debug1: identity file /home/erw/.ssh/id_dsa type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_3.8p1 debug1: match: OpenSSH_3.8p1 pat OpenSSH* Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_3.4p1 Debian 1:3.4p1-1.woody.3 debug1: SSH2_MSG_KEXINIT sent Read from socket failed: Connection reset by peer debug1: Calling cleanup 0x8063aac(0x0)
Output from sshd -d on 192.168.1.3 (yoda)
debug1: sshd version OpenSSH_3.8p1 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: read PEM private key done: type DSA debug1: private host key: #2 type 2 DSA socket: Invalid argument debug1: Bind to port 22 on 0.0.0.0. Server listening on 0.0.0.0 port 22. debug1: Server will not fork when running in debugging mode. Connection from 192.168.1.1 port 37743 debug1: Client protocol version 2.0; client software version OpenSSH_3.4p1 Debian 1:3.4p1-1.woody.3 debug1: match: OpenSSH_3.4p1 Debian 1:3.4p1-1.woody.3 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_3.8p1 mmap(65536): Invalid argument debug1: do_cleanup
I've tried enabling and disabling PAM authentication, I've tried all pam config files (generic, RH new, RH old). I've tried configuring sshd as well as ssh for sole use of protocol 2. I even tried to shut down my ADSL connection and pulling down the firewall alltogether (because I had another "connection reset..."error due to a closed port 22 earlier in the process) but that didn't work either. Since I am at a loss to what the error message means (in spite of googling around and rummaging through usenet archives) I do not know how to proceed. Any pointers?
Greetings,
Edwin
+++++++++++++++++++++++++++++++++++
rarch@lycos.nl
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Multiple modes? throught one connection, Darren Tucker |
|---|---|
| Next by Date: | Re: scp to pipe, Mauricio Araya V. |
| Previous by Thread: | Multiple modes? throught one connection, Tim Nelson |
| Next by Thread: | Re: mmap failure (???) causes my SSH installation to not work?, Edwin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |