Can not connect to sftp on port 22

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Can not connect to sftp on port 22

1,585 次查看
rajspatel1297
Contributor I

Hi,

I'm using yocto gatesgarth. I'm not able to connect via sftp. 

I have already installed sftp-server. 

CORE_IMAGE_EXTRA_INSTALL += " gnupg cmake libcap libcap-dev binutils networkmanager networkmanager-nmcli sshfs-fuse curl openssh-sftp openssh-sftp-server "

Uncommented port 22 from /etc/ssh/sshd_config

Port 22
AddressFamily any
ListenAddress 0.0.0.0

Is there any additional requirement for that?

 

标签 (2)
0 项奖励
回复
2 回复数

1,561 次查看
nxf63675
NXP TechSupport
NXP TechSupport

Hi @rajspatel1297,

 

Try adding the next to your build:

CORE_IMAGE_EXTRA_INSTALL += "openssh"
PACKAGE_EXCLUDE += " packagegroup-core-ssh-dropbear"
CORE_IMAGE_EXTRA_INSTALL += "packagegroup-core-ssh-openssh"

 

Regards,

Israel.

0 项奖励
回复

1,572 次查看
kunyichen
Contributor IV

BSP default use dropbear not openssh, maybe to try add the below line in your local.conf

IMAGE_FEATURES_append = " ssh-server-openssh"

0 项奖励
回复