Port SSH in an embedded linux System

Source: Internet
Author: User
Tags ssh server dropbear

Port SSH in an embedded linux System
Hardware Platform: (arm) Operating System: linux has been using serial port debugging machines, but wired serial port is also inconvenient, debugging equipment must hold a notebook, so try to port SSH to the machine www.2cto.com Dropbear is a relatively small SSH server and client. It runs on a POSIX-based platform. Dropbear is an open source software license in MIT. Dropbear is particularly useful for "embedded" Linux (or other Unix) systems, such as wireless routers. (The size of a complete openssh file is about 7 MB) www.2cto.com export zlib-1.2.3.tar.gz click to import dropbear-0.52.tar.gz click to enter the export directory and create the/usr/local/zlib directory ;. /configure -- prefix =/usr/local/zlib modify MakefileCC = arm-linux-gccAR = arm-linux-ar rcRANLIB = arm-linux-ranlib make; make install; uninstall, create/usr/local/dropbear ;. /configure-prefix =/usr/local/dropbear-with-zlib =/usr/lo Cal/zlib/CC = arm-linux-gcc-host = arm note: absolute path is required here-if you want to put it in the home directory, you can use $ {HOME}/usr/locale/zlib and $ {HOME}/usr/locale/dropbear make; make scp; make install; cp scp/usr/local/dropbear/bin/3. port to 6410: copy the files in/usr/local/dropbear/bin/and/usr/local/dropbear/sbin/to the/usr/sbin directory on the board. Generate server key: cd/etcmkdir dropbearcd dropbeardropbearkey-t rsa-f dropbear_rsa_host_keydropbearkey-t dss-f dropbear_dss_host_key in the startup script/etc/init. add:/usr/sbin/dropbear 3. configure ssh: Modify the root password (if the password cannot be modified, add the passwd and group files to/etc). The following root: 9 is displayed in the pwsswd file. iWjoCN45yCg: 0: 0: Linux User,:/root/:/bin/sh. I can test whether the goup file is empty or: in the root state, enter a command on the board to add user michael and set the password // It is recommended to directly change the root password adduser michael Note: if the connection encounters the following problems: [plain] dragon @ drag On-ubuntu10:/srv/nfs/rootfs/usr/local/dropbear/bin $ ssh 10.17.98.2-l root root@10.17.98.2's password: PTY allocation request failed on channel 0 shell request failed on channel 0 solution: Create the pts directory in dev: mkdir/dev/pts-p Add a section of none/dev/pts devpts defaults 0 0 0 # vi/etc/fstabnone/dev/pts devpts defaults 0 0 in the fstab file and mount- the problem should be solved and connected with xshell ~ If not, use the root user ~

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.