<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 ported dropbear on uClinux, but I couldn't connect target board with ssh</p>
<p><br>
</p><p>&nbsp;<font class="Apple-style-span" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"><span class="Apple-style-span" style="line-height: normal;">&lt;environment&gt;</span></font></p>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; ">1. HOST : fedora 11<br>
2. TARGET: uClinux-2.4.x&nbsp;<br>
3. COMPILER : arm-elf-gcc<br>
4. dropbear-0.52<br>
5. zlib-1.2.3<br>
6. Make is below<br>
<br>----------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
srcdir=.<br>
<br>prefix=/home/proj/tango/linux/dropbear<br>
exec_prefix=${prefix}<br>
bindir=${exec_prefix}/bin<br>
sbindir=${exec_prefix}/sbin<br>
<br>CC=arm-elf-gcc -Wl, -elf2flt<br>
AR=arm-elf-ar<br>
RANLIB=arm-elf-ranlib<br>
STRIP=arm-elf-strip<br>
INSTALL=install<br>
CPPFLAGS= -I./uclibc-include -I./zlib-h<br>
CFLAGS=-I. -I$(srcdir) -I$(srcdir)/libtomcrypt/src/iheaders/ $(CPPFLAGS) -Os -W -Wall<br>
#CFLAGS+= -D__PIC__ -fpic -msingle-pic-base<br>
LIBS=$(LTC) $(LTM) -lutil -lz -lcrypt<br>
LDFLAGS=-L/home/proj/tango/linux/zlib/lib -L./uclibc-lib<br>
<br>--------------------------------------------------------------------------------------------------------------------------------------------------------<br>
7. config.h : I removed below lines in config.h&nbsp;<br>
#define HAVE_DAMON 1<br>
#define HAVE_UTMPX_H 1<br>
#define HAVE_UTMP_H 1<br>
<br>8. fork() --&gt; vfork() : I changed every "fork()" into "vfork()"<br>
<br>9. ./configure&nbsp;<br>
10. make<br>
11. make install<br>
<br>After all, I got a below binary files<br>
<br></span><div>
<span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; ">-------------------------------------------------------------------------<br>
dbclient<br>
dropbearkey<br>
dropbearconvert<br>
dropbear<br>
--------------------------------------------------------------------------------------------<br>
<br></span><div>
<span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; ">12. I put upper binary files to the target board.&nbsp;</span></div>
<div><font class="Apple-style-span" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"><span class="Apple-style-span" style="line-height: normal;"><br>
</span></font><div>
<span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; ">13. I generated "dropbear_rsa_host_key" and "dropbear_dss_host_key" using dropbearkey</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; "><br>
</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; ">command is below&nbsp;</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; ">----------------------------------------------------------------------------------------------</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; ">dropbearkey -t rsa -f dropbear_rsa_host_key</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; ">dropbearkey -t dss -f dropbear_dss_host_key</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; ">----------------------------------------------------------------------------------------------</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; "><br>
</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; ">14. &nbsp;I run dbclient but below errror occured</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; ">When I run dropbear, no error occured</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; ">When dropbearkey run, also no error occured</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; "><br>
------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
/var&gt; ls -al<br>
drwxr-xr-x 1 0 0 0 Jan 1 00:00 .<br>
drwxr-xr-x 1 515 0 192 Jan 1 00:00 ..<br>
-rwxrwxrwx 1 0 0 212456 Jan 1 00:07 dbclient<br>
-rwxrwxrwx 1 0 0 237824 Jan 1 00:00 dropbear<br>
-rwxrwxrwx 1 0 0 458 Jan 1 00:02 dropbear_dss_host_key<br>
-rwxrwxrwx 1 0 0 426 Jan 1 00:01 dropbear_rsa_host_key<br>
-rwxrwxrwx 1 0 0 92480 Jan 1 00:01 dropbearconvert<br>
-rwxrwxrwx 1 0 0 95416 Jan 1 00:00 dropbearkey<br>
drwxrwxrwx 1 0 0 0 Jan 1 00:00 etc<br>
drwxrwxrwx 1 0 0 0 Jan 1 00:00 ifstat<br>
drwxrwxrwx 1 0 0 0 Jan 1 00:00 lock<br>
drwxrwxrwx 1 0 0 0 Jan 1 00:00 log<br>
drwxrwxrwx 1 0 0 0 Jan 1 00:00 run<br>
drwxrwxrwx 1 0 0 0 Jan 1 00:00 tmp<br>
/var&gt; ./dbclient &amp;<br>
./dbclient: exited: Unknown own user<br>
<br>/var&gt; ./dropbear<br>
/var&gt; ps -ef<br>
PID TTY Uid Size State Command<br>
1 0 0 S init&nbsp;<br>
2 0 0 S [keventd]<br>
3 0 0 S [ksoftirqd_CPU0]<br>
4 0 0 S [kswapd]<br>
5 0 0 S [bdflush]<br>
6 0 0 S [kupdated]<br>
49 0 0 S [sdfe-0]<br>
51 0 0 S [sfpcheck]<br>
58 0 0 S [efmoam]<br>
66 0 0 S /bin/boa&nbsp;<br>
67 0 0 S /bin/snmpd&nbsp;<br>
68 0 0 S /bin/logd&nbsp;<br>
69 0 0 S /bin/inetd&nbsp;<br>
70 0 0 S /bin/nexoamd&nbsp;<br>
71 0 0 S /bin/ifgd&nbsp;<br>
208 ttyS0 0 0 S /bin/ncli&nbsp;<br>
209 0 0 S /bin/telnetd&nbsp;<br>
210 ttyp0 0 0 S /bin/sh&nbsp;<br>
214 ttyp0 0 0 R ps -ef&nbsp;<br>
------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
<br>&lt;Problem&gt;<br>
<br></span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; ">1. I don't understand error message occured when i run dbclient. What is the wrong? How can i fix the problem?</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; "><br>
2. except dbclient, dropbearconvert and dropbearkey work properly</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; "><br>
</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; ">3. After i ran dropbear, &nbsp;when I &nbsp;type "ps -ef" , there is no procedure of dropbear</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; "><br>
4. When i run dropbear, no error occured, but &nbsp;when I try to connect target board with ssh,&nbsp;below error occured</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; "><br>
</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; ">--------------------------------------------------------------------------------------------------------------------------------------------------------------&nbsp;</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; ">[root@localhost dropbear-0.52]# ssh 172.16.0.33<br>
ssh: connect to host 172.16.0.33 port 22: Connection refused<br>
[root@localhost dropbear-0.52]# ssh 172.16.0.33<br>
ssh: connect to host 172.16.0.33 port 22: Connection refused<br>
[root@localhost dropbear-0.52]# ssh 172.16.0.33<br>
ssh: connect to host 172.16.0.33 port 22: Connection refused<br>
[root@localhost dropbear-0.52]# ssh 172.16.0.33<br>
ssh: connect to host 172.16.0.33 port 22: Connection refused<br>
[root@localhost dropbear-0.52]# ssh 172.16.0.33<br>
ssh: connect to host 172.16.0.33 port 22: Connection refused<br>
[root@localhost dropbear-0.52]# ssh 172.16.0.33<br>
ssh: connect to host 172.16.0.33 port 22: Connection refused<br>
[root@localhost dropbear-0.52]# ssh 172.16.0.33<br>
ssh: connect to host 172.16.0.33 port 22: Connection refused<br>
-------------------------------------------------------------------------------------------------------------------------------------------------------------------</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; "><br>
</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; ">I don't know what is the problem</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; "><br>
</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; ">There is error ... I can't recognize them</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; "><br>
</span></div>
<div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal; ">Is there something file wrong?<br>
<br>please help me...</span></div>
</div></div></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=%3C20100614140300%2EHM%2EA0000000002kYEc%40bakdorazi%2Ewwl1062%2Ehanmail%2Enet%3E">