<html><head><style> p {margin-top:0px;margin-bottom:0px;} </style></head>
<body><div style="font-size:12px; font-family:±¼¸²,±¼¸²Ã¼,Gulim,Baekmuk Dotum,Undotum,Apple Gothic,Latin font,sans-serif;">
<table border=0 width=100% style='background: transparent;' cellpadding=0 cellspacing=0 align=center>
        <tr>
        <td valign=top style='padding:8pt;'>
<div style="color: rgb(51, 51, 51); font-family: µ¸¿ò; font-size: 10pt; background-color: transparent; line-height: 1.5; padding-top: 8px; padding-right: 8px; padding-bottom: 8px; padding-left: 8px; "><p>Hi all</p>
<p>I have some error when i connect dropbear arise</p>
<p><br>
</p><p><br>
</p><p> <Environment></p>
<p><br>
</p><p>1. Target : uClinux-2.4.x (ARM)</p>
<p><br>
</p><p>2. /etc/passwd </p>
<p><br>
</p><p>--------------------------------------------------------------------------------------------------------------</p>
<p>root:$1$$I2o9Z7NcvQAKp7wyCTlia0:0:0:root:/:</p>
<p>passwd $1$$I2o9Z7NcvQAKp7wyCTlia0</p>
<p>enable $1$$I2o9Z7NcvQAKp7wyCTlia0</p>
<p>-------------------------------------------------------------------------------------------------------------------</p>
<p><br>
</p><p><br>
</p><p>3. This Massage shows when dropbear is running </p>
<p><br>
</p><p>---------------------------------------------------------------------------------------------------------------------------------</p>
<p>/var> ps -ef</p>
<p><br>
</p><p> PID TTY Uid Size State Command</p>
<p> 1 root 0 S init </p>
<p> 2 root 0 S [keventd]</p>
<p> 3 root 0 S [ksoftirqd_CPU0]</p>
<p> 4 root 0 S [kswapd]</p>
<p> 5 root 0 S [bdflush]</p>
<p> 6 root 0 S [kupdated]</p>
<p> 50 root 0 S [sdfe-0]</p>
<p> 52 root 0 S [sfpcheck]</p>
<p> 59 root 0 S [efmoam]</p>
<p> 67 root 0 S /bin/boa </p>
<p> 68 root 0 S /bin/snmpd </p>
<p> 69 root 0 S /bin/logd </p>
<p> 70 root 0 S /bin/inetd </p>
<p> 71 root 0 S /bin/nexoamd </p>
<p> 72 root 0 S /bin/ifgd </p>
<p> 74 ttyS0 root 0 S /bin/sh </p>
<p> 4532 root 0 S /bin/telnetd </p>
<p> 4533 ttyp1 root 0 S /bin/sh </p>
<p> 4624 ttyp1 root 0 Z [dropbear]</p>
<p> 6476 ttyp1 root 0 D ./dropbear </p>
<p> 6477 root 0 S ./dropbear </p>
<p> 6587 ttyp1 root 0 R ps -ef </p>
<p><br>
</p><p>/var> [12487] Jan 02 16:00:22 Child connection from 172.16.0.11:60769</p>
<p>[12487] Jan 02 16:00:32 password auth succeeded for 'root' from 172.16.0.11:60769</p>
<p>[12487] Jan 02 16:00:33 exit after auth (root): chown(/dev/ttyp1, 0, 21869564) failed: Read-only file system</p>
<div><br>
</div><p>--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</p>
<p><br>
</p><p>4. HOST : 172.16.0.11 : I try to connect to Target with ssh but I failed</p>
<p>-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</p>
<p><p>[root@localhost sbin]# ssh 172.16.0.33</p>
<p>root@172.16.0.33's password: </p>
<p>Read from remote host 172.16.0.33: Connection reset by peer</p>
<p>Connection to 172.16.0.33 closed.</p>
<p>[root@localhost sbin]# ssh 172.16.0.33</p>
<p>root@172.16.0.33's password: </p>
<p>Read from remote host 172.16.0.33: Connection reset by peer</p>
<p>Connection to 172.16.0.33 closed.</p>
<div>----------------------------------------------------------------------------------------------------------------------------------------------------------------</div>
</p><p><br>
</p><p>5. ps -ef After Login failed</p>
<p><br>
</p><p>-------------------------------------------------------------------------------------------------------------------</p>
<p>/var> ps -ef</p>
<p> PID TTY Uid Size State Command</p>
<p> 1 root 0 S init </p>
<p> 2 root 0 S [keventd]</p>
<p> 3 root 0 S [ksoftirqd_CPU0]</p>
<p> 4 root 0 S [kswapd]</p>
<p> 5 root 0 S [bdflush]</p>
<p> 6 root 0 S [kupdated]</p>
<p> 50 root 0 S [sdfe-0]</p>
<p> 52 root 0 S [sfpcheck]</p>
<p> 59 root 0 S [efmoam]</p>
<p> 67 root 0 S /bin/boa </p>
<p> 68 root 0 S /bin/snmpd </p>
<p> 69 root 0 S /bin/logd </p>
<p> 70 root 0 S /bin/inetd </p>
<p> 71 root 0 S /bin/nexoamd </p>
<p> 72 root 0 S /bin/ifgd </p>
<p> 74 ttyS0 root 0 S /bin/sh </p>
<p> 4532 root 0 S /bin/telnetd </p>
<p> 4533 ttyp1 root 0 S /bin/sh </p>
<p> 4624 ttyp1 root 0 Z [dropbear]</p>
<p> 6476 ttyp1 root 0 D ./dropbear </p>
<p> 6477 root 0 D ./dropbear </p>
<p> 6705 root 0 R ./dropbear </p>
<p> 6708 root 0 S sh -c /bin/draw_gd -d 25 254 254 </p>
<p> 6709 root 0 R /bin/draw_gd -d 25 254 254 </p>
<p> 6710 ttyp1 root 0 R ps -ef </p>
<p>-----------------------------------------------------------------------------------------------------------------------------------------------</p>
<p>New PID is created.</p>
<p><br>
</p><p>pid 6705</p>
<p>pid 6708</p>
<p>pid 6709</p>
<p><br>
</p><p><Install Process></p>
<p><br>
</p><p>1. ./configure --prefix=/home/proj/tango/linux/dropbear --disable-openpty --disable-zlib STATIC=1</p>
<p>2. make STATIC 1</p>
<p>3. make STATIC 1 install</p>
<p>4. This is Makefile</p>
<p>------------------------------------------------------------------------------------------------------------------------------------------------------</p>
<p><br>
</p><p><p>srcdir=.</p>
<p><br>
</p><p>prefix=/home/proj/tango/linux/dropbear/arm</p>
<p>exec_prefix=${prefix}</p>
<p>bindir=${exec_prefix}/bin</p>
<p>sbindir=${exec_prefix}/sbin</p>
<p><br>
</p><p>CC=arm-elf-gcc -Wl, -elf2flt</p>
<p>AR=arm-elf-ar</p>
<p>RANLIB=arm-elf-ranlib</p>
<p>STRIP=arm-elf-strip</p>
<p>INSTALL=install</p>
<p>CPPFLAGS=-I./uclibc-include -I/usr/local/arm-elf/include</p>
<p>CFLAGS=-I. -I$(srcdir) -I$(srcdir)/libtomcrypt/src/headers/ $(CPPFLAGS) -Os -W -Wall</p>
<p>LIBS=$(LTC) $(LTM) -lutil -lcrypt</p>
<p>LDFLAGS=-L./uclibc-lib</p>
<p><br>
</p><p>EXEEXT=</p>
<div><br>
</div><div>
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</div>
</p><p>5. This is sshpty.c</p>
<p>--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</p>
<p><p> if (stat(tty_name, &st)) {</p>
<p>379 dropbear_exit("pty_setowner: stat(%.101s) failed: %.100s",</p>
<p>380 tty_name, strerror(errno));</p>
<p>381 }</p>
<p>382 </p>
<p>383 if (st.st_uid != pw->pw_uid || st.st_gid != gid) {</p>
<p>384 if (chown(tty_name, pw->pw_uid, gid) < 0) {</p>
<p>385 if (errno == EROFS &&</p>
<p>386 (st.st_uid == pw->pw_uid || st.st_uid == 0)) {</p>
<p>387 dropbear_log(LOG_ERR,</p>
<p>388 "chown(%.100s, %u, %u) failed: %.100s",</p>
<p>389 tty_name, (unsigned int)pw->pw_uid, (unsigned int)gid,</p>
<p>390 strerror(errno));</p>
<p>391 } else {</p>
<p>392 dropbear_exit("chown(%.100s, %u, %u) failed: %.100s",</p>
<p>393 tty_name, (unsigned int)pw->pw_uid, (unsigned int)gid,</p>
<p>394 strerror(errno));</p>
<p>395 }</p>
<p>396 }</p>
<p>397 }</p>
<p>398 </p>
<p>399 if ((st.st_mode & (S_IRWXU|S_IRWXG|S_IRWXO)) != mode) {</p>
<p>400 if (chmod(tty_name, mode) < 0) {</p>
<p>401 if (errno == EROFS &&</p>
<p>402 (st.st_mode & (S_IRGRP | S_IROTH)) == 0) {</p>
<p>403 dropbear_log(LOG_ERR,</p>
<p>404 "chmod(%.100s, 0%o) failed: %.100s",</p>
<p>405 tty_name, mode, strerror(errno));</p>
<p>406 } else {</p>
<p>407 dropbear_exit("chmod(%.100s, 0%o) failed: %.100s",</p>
<p>408 tty_name, mode, strerror(errno));</p>
<p>409 }</p>
<p>410 }</p>
<p>411 }</p>
<p>412 }</p>
<div>--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</div>
</p><p><br>
</p><p>How can i fixed the this problem?</p>
<p><br>
</p><p><br>
</p><p><br>
</p></div></td></tr>
</table>
</div></body></html>
<!-- __Hanmail-sig-Start__ -->
<!-- __Hanmail-sig-End__ -->
<!-- __Hanmail-tail-Start__ -->
<table width="100%" cellspacing="0" cellpadding="0" background="http://mimg.daum-img.net/08mail/bg_dot.gif" style="margin-top:15px;background-repeat:repeat-x;background-position:left top;">
<tr height="36">
<td align="left" height="36" style="padding-left:5px;font-size:12px;font-family:±¼¸²,gulim,Apple Gothic,sans-serif;color:#333333;">
        </td>
</tr>
</table>
<!-- __Hanmail-tail-End__ -->
<img src="http://wwl1062.hanmail.net:4280/@from=bakdorazi&rcpt=dropbear%40ucc%2Easn%2Eau&msgid=%3C20100616120310%2EHM%2EA0000000002kYFt%40bakdorazi%2Ewwl1062%2Ehanmail%2Enet%3E">