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