Date: Fri, 3 Jan 2003 20:25:44 -0500 From: Craig Rodrigues <rodrigc@attbi.com> To: freebsd-current@freebsd.org Subject: sshd fails with: fatal: ssh_msg_send: write Message-ID: <20030104012544.GA2525@attbi.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030104012544.GA2525>