当前位置:网站首页>How to use SFTP command to access SFTP server on the development board
How to use SFTP command to access SFTP server on the development board
2022-07-29 06:41:00 【Bug keyboard man】
One 、 background
1、 The specified user can only pass sftp Visit upload and download files , Cannot pass SSH land , And lock it in a specific directory , The development board does not sftp, Here's the picture 1.
chart 1

Two 、 Libraries to download (openssl,openssh)
2.1、 Download path (github Download from the official website )
2.2、 The following is the library file sharing I downloaded
https://share.weiyun.com/UOPUjHgo 3、 ... and 、Ubuntu Cross compilation
3.1、 New installation directory
mkdir test_sftp
cd test_sftp
mkdir source package
mkdir package/openssl
cd source
3.2、 Put the downloaded installation package under this path and unzip
tar -zxvf openssl-3.0.0.tar.gz
tar -zxvf openssh-8.4p1.tar.gz
3.3、openssl compile
cd openssl-3.0.0
./Configure --prefix=/home/gec/Downloads/test_tsftp/package/openssl (--prefix Specify installation path )
source /opt/fsl-framebuffer/2.4.4/environment-setup-cortexa9hf-neon-fsl-linux-gnueabi ( Declare the cross compiler ), My development board specifies the cross compiler as arm-fsl-linux-gnueabi-gcc. The installation path is /opt/fsl-framebuffer/2.4.4/environment-setup-cortexa9hf-neon-fsl-linux-gnueabi
make
make install
3.4、make Possible errors in post compilation , Cross compiler path error ,-m64 error ( Pictured 2), chart 3 Is the modified Makefile
chart 2

chart 3

After successful installation package/openssl/ Relevant library files are generated under the directory
3.4、openssh Cross compilation
cd /openssh-8.4p1
./configure --host=arm-fsl-linux-gnueabi --with-ssl-dir=/home/gec/Downloads/test_stftp/package/openssl --disable-etc-default-login
(--host Specify the cross compiler ,--with-ssl-dir= Point to openssl Correlation Library )
make
make You can find it after success sftp,sftp-server Migrate to development board /bin Under the table of contents ,libcrypto.so.3 Put it in /lib Under the table of contents , Permission set to 777,
Input at the terminal of the development board sftp, The following figure shows the successful migration

If connected sftp The server reports the following error , hold ssh Download to /usr/local/bin/ Under the table of contents , permissions 777.

Log in again sftp Server success

End !
边栏推荐
- 华为交换机CE12808导入导出配置文件
- Raw advanced socket experiment
- unsigned right shift
- 盘点 | 全球关键信息基础设施网络安全大事件
- Hongke | uses jesd204 serial interface to bridge analog and digital worlds at high speed
- 【面试题】2022年最新软件测试面试题(400道)【附带答案】持续更新...
- 8、 Network security
- Hongke white paper | how to use TSN time sensitive network technology to build a digital factory in industry 4.0?
- Using STP spanning tree protocol to solve the problem of two-layer loop in network
- 6、 Network interconnection and Internet
猜你喜欢

2022年的软件测试的岗位要求为何越来越高?这其中有什么不可告人的秘密吗?

day15_泛型

TCP based online dictionary

Online multiplayer chat room based on UDP communication

day04_数组

day10_ Exception handling & enumeration

Floating point square root of vivado IP core floating point

Hongke solution | a unique solution to realize seamless integration at low cost in Digital Substations

软件测试职业发展:软件测试人员该何去何从

Arrays&Object&System&Math&Random&包装类
随机推荐
Understand the great changes of network security in five years
waf防护是什么
解决分频模块modelsim下仿真输出为stx的错误
day03_ 2_ task
如何在开发板上使用sftp命令访问sftp-server
Use of for statement in Verilog
day09_ Static & Final & code block & abstract class & Interface & internal class
day06_类与对象
用神经网络实现手写数字识别
unsigned right shift
day16-集合上
3、 Wide area communication network
VMware虚拟机在物理机win10系统下如何连接外网
2022 summer second day information competition learning achievement sharing 2
Complex floating point division of vivado IP core floating point
9、 Networking technology
How to pre circumvent the vulnerabilities of unsafe third-party components?
NoClassDefFoundError processing
8、 Network security
Merkle tree existential function modified for the first time