Go Down

Topic: Reflashed Yun won ´t accept sftp (Read 1 time) previous topic - next topic

Lelivaldo

Hello,

After reflashing, my Yún seems perfectly normal. The only problem is that it doesn´t accept SFTP anymore. The log  from Filezilla is at the bottom of this message.
Before reflashing, I had to install openssh-sftp-server so that could use the SFTP. When I tried to install it in this new reflashed version of the Yún, I coudn´t, because it was already there. So the new images already contain it.

The technical info I think could help is bellow.
Any ideas?

Thanks a lot in advance for your help.


Now, after reflashing, the system is:
Model: Arduino Yun
Firmware Version: OpenWrtYun ChaosCalmer 1.6.2 r48749 / LuCI for-15.05 branch (git-16.081.39589-0207cb7)
Kernel Version:   3.18.23

-The ssh version is:
Dropbear v2015.67

-The openssh-sftp-server  is 7.1p2-1
Package: openssh-sftp-server
Version: 7.1p2-1
Depends: libc
Source: feeds/packages/net/openssh
License: BSD ISC
LicenseFiles: LICENCE
Section: net
Maintainer: Peter Wagner <tripolar@gmx.at>
Architecture: ar71xx
Installed-Size: 31653
Description:  OpenSSH SFTP server.
root@Arduino:~#

-----------------------------------

I have another Yún that was not reflashed. Here the SFTP process is normal.
this one has:

Router Model: Arduino Yun
Firmware Version: OpenWRTYun Attitude Adjustment 1 / LuCI 0.11 Branch (0.11+svn10537)
Kernel Version: 3.3.8

-The ssh version is:
ssh :Dropbear client v2011.54

-The openssh-sftp-server  is 6.1p1-1
Package: openssh-sftp-server
Version: 6.1p1-1
Depends: libc, libopenssl, zlib
Provides:
Source: feeds/packages/net/openssh
Section: net
Status: unknown ok not-installed
Essential: no
Priority: optional
Maintainer: Peter Wagner <tripolar@gmx.at>
Architecture: ar71xx
Installed-Size: 21208
Description:  OpenSSH SFTP server.

------------------------------------------------------------

Log from FileZilla when I try to connect from the reflashed version:

Status:   Connecting to 192.168.1.101...
Response:   fzSftp started, protocol_version=5
Command:   open "root@192.168.1.101" 22
Command:   Pass: ******************
Status:   Connected to 192.168.1.101
Error:   Received unexpected end-of-file from SFTP server
Error:   Could not connect to server

Status:   Disconnected from server
Status:   Connecting to 192.168.1.101...
Trace:   Going to execute C:\Program Files\FileZilla FTP Client\fzsftp.exe
Response:   fzSftp started, protocol_version=5
Trace:   CSftpControlSocket::ConnectParseResponse(fzSftp started, protocol_version=5)
Trace:   CSftpControlSocket::SendNextCommand()
Trace:   CSftpControlSocket::ConnectSend()
Command:   open "root@192.168.1.101" 22
Trace:   Connecting to 192.168.1.101 port 22
Trace:   We claim version: SSH-2.0-PuTTY_Local:_May_27_2016_14:22:46
Trace:   Server version: SSH-2.0-dropbear_2015.67
Trace:   Using SSH protocol version 2
Trace:   Using Diffie-Hellman with standard group "group14"
Trace:   Doing Diffie-Hellman key exchange with hash SHA-1
Trace:   Server also has ssh-dss host key, but we don't know it
Trace:   Host key fingerprint is:
Trace:   ssh-rsa 2048 f0:93:a0:7d:bd:a8:90:d0:e8:9f:b7:2a:aa:17:6c:76
Trace:   Initialised AES-256 SDCTR client->server encryption
Trace:   Initialised HMAC-SHA1 client->server MAC algorithm
Trace:   Initialised AES-256 SDCTR server->client encryption
Trace:   Initialised HMAC-SHA1 server->client MAC algorithm
Command:   Pass: ******************
Trace:   Sent password
Trace:   Access granted
Trace:   Opening session as main channel
Trace:   Opened main channel
Trace:   Started a shell/command
Status:   Connected to 192.168.1.101
Error:   Received unexpected end-of-file from SFTP server
Trace:   CSftpControlSocket::ResetOperation(66)
Trace:   CControlSocket::ResetOperation(66)
Error:   Could not connect to server
Status:   Waiting to retry...
Status:   Connecting to 192.168.1.101...
Trace:   Going to execute C:\Program Files\FileZilla FTP Client\fzsftp.exe
Response:   fzSftp started, protocol_version=5
Trace:   CSftpControlSocket::ConnectParseResponse(fzSftp started, protocol_version=5)
Trace:   CSftpControlSocket::SendNextCommand()
Trace:   CSftpControlSocket::ConnectSend()
Command:   open "root@192.168.1.101" 22
Trace:   Connecting to 192.168.1.101 port 22
Trace:   We claim version: SSH-2.0-PuTTY_Local:_May_27_2016_14:22:46
Trace:   Server version: SSH-2.0-dropbear_2015.67
Trace:   Using SSH protocol version 2
Trace:   Using Diffie-Hellman with standard group "group14"
Trace:   Doing Diffie-Hellman key exchange with hash SHA-1
Trace:   Server also has ssh-dss host key, but we don't know it
Trace:   Host key fingerprint is:
Trace:   ssh-rsa 2048 f0:93:a0:7d:bd:a8:90:d0:e8:9f:b7:2a:aa:17:6c:76
Trace:   Initialised AES-256 SDCTR client->server encryption
Trace:   Initialised HMAC-SHA1 client->server MAC algorithm
Trace:   Initialised AES-256 SDCTR server->client encryption
Trace:   Initialised HMAC-SHA1 server->client MAC algorithm
Command:   Pass: ******************
Trace:   Sent password
Trace:   Access granted
Trace:   Opening session as main channel
Trace:   Opened main channel
Trace:   Started a shell/command
Status:   Connected to 192.168.1.101
Error:   Received unexpected end-of-file from SFTP server
Trace:   CSftpControlSocket::ResetOperation(66)
Trace:   CControlSocket::ResetOperation(66)
Error:   Could not connect to server

Yoko_Ono

same problem here, have you found a solution?

DNKROZ

I have the same problem here (plus some more) with the new software version.

Same version and symptoms.

Regards.

kantila

I dont' know if these problems are related, but on the Yun Shield (OpenWrtYun ChaosCalmer 1.6.2 r48749) everything OpenSSH-related seem to give segmentation fault. For example:

root@yun:/mnt/sda1# sshd start
Segmentation fault

root@yun:/mnt/sda1# sftp root@localhost
Segmentation fault

I have:

openssh-keygen - 7.1p2-1
openssh-server - 7.1p2-1
openssh-sftp-client - 7.1p2-1
openssh-sftp-server - 7.1p2-1

If you ssh to the Yun/Shield, do you experience the same? Don't quite know howto debug this.

- K

joacolop

Hello, I have exactly the same problem with sftp after reflash ...
Any progress, solution, alternative, workaround ?
Thanks in advance.
Regards.

Wile

Exactly same here :\

No one has a solution / tip / hack / wtf ? ;)

Lelivaldo

Hi there,
I coudn´t make the sFTP protocol work. So I tried another one, and it worked!

This one: https://en.wikipedia.org/wiki/Secure_copy

And in Windows I´m using this program:
https://winscp.net/eng/index.php

xerof

I've the same issue as the above. Segmentation fault if trying to run /usr/libexec/sftp-server.

I then copied over the sftp-server from my 2013 model Yun to the 2016 Yun shield and guess what, it's working fine...


seiche

I had same no SFTP access issue with Yun Shield plus Mega. Worked fine on my Arduino Yuns...was using Filezilla now using Win SCP - thanks for posting.

AgroMeInc

Identical issue with a Yun Shield and latest image 1.6.2

/usr/libexec# ./sftp-server
Segmentation fault

Model: Yun Shield
Firmware Version: OpenWrtYun ChaosCalmer 1.6.2 r48749 / LuCI for-15.05 branch (git-16.081.39589-0207cb7)
Kernel Version: 3.18.23

I downloaded the latest Yun Shield image from: http://downloads.arduino.cc/openwrtyun/1.6.2/YunSysupgradeImage_v1.6.2.zip

Not sure why Arduino folk are so silent about this because sshd and sftp are critical for any sort of development and hacking the owrt side.

Hope to get some sort of answer or workaround!

AgroMeInc

As an update: I installed vsftpd and working fine over ftp so for development this is good enough for me. vsftpd has a tls version too. But sftp shoudl still work and not give segfault

Go Up