sorry,the config rule is here:
ftpd_banner=OSMC FTP Server
And as last, just to prevent a passive mode issue on the ftp server on 4K:
sudo ftp 127.0.0.1 (and login as user osmc/osmc)
In case of a passive mode bug, this should fail as well using the loopback device in the 4K itself.
@isslayne: I’ve just have had a quick look at the FlashFXP forum FlashFXP Forums - Powered by vBulletin and could easily identfiy threads and bug tickets regarding chinese characters and extreme slow sftp performance.
Do we talk all the time about bugs and issues of this tool? In that case it would have been a really waste of my time.
So, please, try to use a good tool like https://filezilla-project.org/ just to confirm that the issue is not isolated to “FlashFXP”.
I know I’m a bit late coming into this thread but, having read through it twice, I’d just like to make a few points:
- The OP originally tried to sftp onto the box using some Windows application called flashFTP. (BTW, I found FlasFXP for Windows and FlashFTP for OSX.) When the sftp failed, OP tried ftp, but this was too slow to be usable.
- The OP can SSH to the box, so this strongly suggests that the flashFTP application is either in need of further configuration or, perhaps, of replacement. Sam mentioned WinSCP in passing, but not as a possible replacement for FlashFTP. We know WinSCP generally works. I see that @JimKnopf is now recommending a different FTP client. Good call Jim.
- The most sensible route at this point would have been, either to try WinSCP (or something with a proven track record) or, failing that, to see what’s happening with sftp on the system log but nobody mentioned the system log.
- Successful debugging should try to focus in on the problem. Installing vsftpd in an effort to sidestep the issue seems to me to have been premature - and just seems to have complicated matters.
@JimKnopf @dillthedog I have tried to use WINSCP ,same as flashftp, so the problem is not the ftp tool,still tips Error listing directory ‘/home/osmc’.
Restart from scratch: Let me summarize your issues as far as I understood it
Your’re using a Vero 4K with latest greatest OSMC and have two problems accessing the Vero from your Win 10 PC, only cable and switches but no router and firewalls in between. From your first post one can get:
SFTP, you cannot connect from your PC at all and you get a timeout (on the Vero, this starts a openssh/sftp-server process)
FTP, the first try to get a directory list is succesful but extreme slow, a further try fails with a timeout. (this is handled by the vsftpd service on OSMC)
You have tested this with client software FlashFXP which has open threads and tickets in its forum regarding slow SFTP and Chinese characters and the well-known SW WinSCP on the Win 10, both showing the exact same behaviour.
You have not tested this locally on the Vero 4k itsself like
osmc@osmc-vero:~$ sftp email@example.com
Connected to 127.0.0.1.
Movies Music Pictures TV Shows
osmc@osmc-vero:~$ ftp 127.0.0.1
Connected to 127.0.0.1.
220 OSMC FTP Server
Name (127.0.0.1:osmc): osmc
331 Please specify the password.
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwxr-xr-x 2 1000 1000 4096 Jan 28 06:41 Movies
drwxr-xr-x 2 1000 1000 4096 Jan 28 06:41 Music
drwxr-xr-x 2 1000 1000 4096 Jan 28 06:41 Pictures
drwxr-xr-x 2 1000 1000 4096 Jan 28 06:41 TV Shows
226 Directory send OK.
- There are still no logs provided like suggested in the thread How to submit a useful support request
So, give points 1.-3. a try and look who answers then.
I’ve just tried ftp to Vero4K (app store ftp) with filezilla, and also command-line on my Mac.
Both working perfectly.
(suggest renaming this post )
I’ve reinstalled osmc and tried ftp by command-line on my mac,also log
“150 comes the directory listing”
As requested previously, we need logs to get a better understanding of the problem. Please see http://osmc.tv/wiki/general/how-to-submit-a-useful-support-request/
Also, you were asked if you are connected Wired or Wifi, and you didn’t answer.
I’m suspecting that you have a network issue, but without the requested logs and information it will be difficult to help you.
yes,I connected wifi,the system log I will send later,thank you very much
Can you try connecting wired? If it works wired then we will have a better idea of what to do next.
I think you have a network problem (ie tcp/ip not ftp).
It could be either a firewall/port blocker shutting down the connection.
Or else, maybe your wifi connection is dropping.
on the Vero4K, use
dmesg -T, and look for any wifi errors around this time: (10:01:27)
2017-04-06 10:01:27.153 150 Here comes the directory listing.
. 2017-04-06 10:01:42.404 Timeout detected. (data connection)
. 2017-04-06 10:01:42.404 Could not retrieve directory listing
I would also try with wired connection. And continue testing with Mac command-line.
Trying other applications is just making it more difficult to track down the root cause.
Respectfully, I think this thread got off on the wrong foot and is yet to recover.
The OP had some sftp issues, yet could ssh to OSMC. That should have been (and should still be) the starting point for troubleshooting this issue. In the unlikely event that we simply can’t get sftp to work, only then should we even consider moving to vsftp.
OP needs to provide logs. Perhaps because of language issues, they have not yet been provided. @isslayne please try once more to sftp to OSMC and then run
grab-logs -A . Please post the link returned by the grab-logs command.
@dillthedog @JimKnopf @fzinken @anbodearg @bmillham, now I connect wired， it works well ftp and sftp , but it still don’t work when I connect wifi， this is the log.Thank you very much
Well that at least proof it is not a bug or a misconfiguration.
You need to improve your wifi connection. Install wavemon
sudo apt-get install wavemon to check the connection quality.
And you can install iperf3 to check connection throughput.
I run “sudo wavemon” command line, show this log
can not get range information: Bad address
what does it mean ?
I haven’t tried wavemon, but here is some info about it.
There is also some info about iwconfig, which will give you a quick
status on the wifi link quality
bad address usually means there is another device on your network with the same IP address.
could you tell me the command that can refresh vero 4k ip?