From owner-freebsd-current Fri Jan 3 17:25:30 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5330C37B401 for ; Fri, 3 Jan 2003 17:25:28 -0800 (PST) Received: from h00609772adf0.ne.client2.attbi.com (h00609772adf0.ne.client2.attbi.com [24.61.43.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7418043EE1 for ; Fri, 3 Jan 2003 17:25:27 -0800 (PST) (envelope-from rodrigc@attbi.com) Received: from h00609772adf0.ne.client2.attbi.com (localhost [127.0.0.1]) by h00609772adf0.ne.client2.attbi.com (8.12.6/8.12.6) with ESMTP id h041PjIC002656 for ; Fri, 3 Jan 2003 20:25:45 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost) by h00609772adf0.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id h041Pjsk002655 for freebsd-current@freebsd.org; Fri, 3 Jan 2003 20:25:45 -0500 (EST) Date: Fri, 3 Jan 2003 20:25:44 -0500 From: Craig Rodrigues To: freebsd-current@freebsd.org Subject: sshd fails with: fatal: ssh_msg_send: write Message-ID: <20030104012544.GA2525@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I've seen similar posts about this problem but with no solution here: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=212876+0+archive/2002/freebsd-current/20021222.freebsd-current I've recently cvsup'd and rebuilt the world, and now I cannot access my machine with ssh. In the console, I am seeing these messages when I try to login: sshd[2168]: fatal: ssh_msg_send: write sshd[2171]: fatal: ssh_msg_send: write If I restart my server with: sshd -d -d -d I get the following output: debug3: mm_pam_init_ctx debug3: mm_request_send entering: type 42 debug3: monitor_read: checking request 42 debug3: mm_answer_pam_init_ctx debug3: mm_pam_init_ctx: waiting for MONITOR_ANS_PAM_INIT_CTX debug3: mm_request_receive_expect entering: type 43 debug3: mm_request_receive entering debug3: ssh_msg_send: type 1 ssh_msg_send: write debug1: Calling cleanup 0x8061180(0x0) debug1: PAM: cleanup debug3: mm_request_receive entering debug3: monitor_read: checking request 44 debug3: mm_answer_pam_query debug3: ssh_msg_recv entering This is the same backtrace posted by Segey Osokin: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=248381+0+/usr/local/www/db/text/2002/freebsd-current/20021222.freebsd-current The error messages are being printed here inside /usr/src/crypto/openssh/msg.c: 33 void 34 ssh_msg_send(int fd, u_char type, Buffer *m) 35 { 36 u_char buf[5]; 37 u_int mlen = buffer_len(m); 38 39 debug3("ssh_msg_send: type %u", (unsigned int)type & 0xff); 40 41 PUT_32BIT(buf, mlen + 1); 42 buf[4] = type; /* 1st byte of payload is mesg-type */ 43 if (atomicio(write, fd, buf, sizeof(buf)) != sizeof(buf)) 44 fatal("ssh_msg_send: write"); 45 if (atomicio(write, fd, buffer_ptr(m), mlen) != mlen) 46 fatal("ssh_msg_send: write"); 47 } 48 I really don't know what the problem is.....is this a PAM problem? Thanks. -- Craig Rodrigues http://home.attbi.com/~rodrigc rodrigc@attbi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message