Dropbear - Build only scp

6.9k views Asked by At

We are using dropbear to perform the scp and ssh functionalities. The security department is concerned about the ssh client in the production builds. But, we need scp functionality to transfer the files in the production images. How can I disable dropbear's ssh without disabling scp functionality?

2

There are 2 answers

0
Ashok Vairavan On BEST ANSWER

Dropbear is a lightweight replaced of openssh in the embedded systems. It provides the following functionalities:

dbclient dropbearkey dropbearconvert scp ssh

It also provides an option in the makefile to build only scp utility. Production images needs to build and include only scp binary whereas the debug images should build and include all the dropbear binaries.

$(MAKE) PROGRAMS="scp"
0
user7009351 On

I found that "SCP" is dependent upon dbclient, so you need to build that also.

$make PROGRAMS="scp dbclient"