Remote System Explorer for dropbear Transplantation

Source: Internet
Author: User
Tags dropbear

Remote System Explorer for dropbear Transplantation

DS-5's remote system explorer is based on the SSH protocol, so SSH must be ported to ARM Linux. OpenSSH is sufficient for embedded systems, but relatively large. When space is limited, it is better to select dropbear. Dropbear is a lightweight SSH2 server and client that dynamically compiles around 1.4 kb, far less than MB of OpenSSH.

Download

Dropbear http://matt.ucc.asn.au/dropbear/dropbear.html zlib-1.2.3 http://www.zlib.net Compilation

Zlib-1.2.3:
Tar zxvf zlib-1.2.3.tar.gz.-C.
CD zlib-1.2.3/
./Configure -- shared -- prefix = ~ /SFTP/Pack/zlib
Modify makefile:
Cc = GCC changed:
Cross =/usr/local/ARM/3.4.1/bin/ARM-Linux-
Cc = $ (Cross) GCC
Ldshared = gcc-shared-wl,-soname, libz. so.1 changed to: ldshared = $ (Cross) GCC-shared-wl,-soname, libz. so.1
CPP = gcc-e changed to: CPP = $ (Cross) GCC-e
AR = ar RC changed to: Ar = $ (Cross) Ar RC
Then: Make; make install

Dropbear

First extract the source code package, and then enter the Directory

./After configure, modify makefile. Make sure to modify the following options:

Prefix =/home/armlinux/dropbear
Cross =/usr/local/ARM/3.4.1/bin/ARM-Linux-
Cc = $ (Cross) GCC
AR = $ (Cross) Ar
Ranlib = $ (Cross) ranlib
Strip = $ (Cross) strip
Cflags =-I. -I $ (srcdir)/libtomcrypt/src/headers/$ (cppflags) -OS-w-wall-I/home/armlinux/fs/utilities/ssh/zlib-1.2.3.
Libs = $ (LTC) $ (ltm)-lutil-LZ-lcrypt
Ldflags =-L/home/armlinux/fs/utilities/ssh/zlib-1.2.3.

 
The path of the zlib header file and library, and the path of the cross compiler must be modified according to your own situation. After compilation, do not install it.
 
Generated file:
Dropbear: SSH2 server
Dropbearkey: key generator
Dropbearconvert: You can convert OpenSSH keys.
Dbclient: SSH2 Client
Put the above files in the/usr/sbin directory of the target board, and create the configuration directory:

Mkdir/etc/dropbear;

CD/etc/dropbear,
Finally, use dropbearkey to generate the key:

Dropbearkey-t rsa-F dropbear_rsa_host_key,

Dropbearkey-t dss-F dropbear_dss_host_key.
 
Start the server: # dropbear-e

Connection

Create a new connection in the remote systems view of the DS-5

Select SSH only

Enter the IP address or computer name in host name. You can enter either of the following two items and click Finish,

If you need to enter the user name and password during connection, you can change the root password on the Development Board and then directly use root to log on.

Create a user. After the connection, you can use SSH shells and SSH terminal.

Note:

Because dropbear does not contain the SFTP server, an error occurs when you connect to the SFTP server. That is, SFTP files cannot be used, but ssh shells and SSH terminal are not affected.

Error message for connecting to SFTP Server:

Failed to connect SFTP subsystem: remote host may not have sftp-server installed: Java. Io. ioexception: inputstream is closed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.