Can not connect to sftp on port 22

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can not connect to sftp on port 22

738 Views
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?

 

Labels (2)
0 Kudos
2 Replies

714 Views
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 Kudos

725 Views
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 Kudos