This forum uses cookies. Click X button to hide this message. What is stored? / Privacy
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SFTP/SCP with Busybox based ls fails

 
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander for Android Printable version
View previous topic :: View next topic  
Author Message
mablae
Junior Member
Junior Member


Joined: 09 Mar 2018
Posts: 3

PostPosted: Fri Mar 09, 2018 12:52 pm    Post subject: SFTP/SCP with Busybox based ls fails Reply with quote

Hi there, thanks for the beautiful piece of software tc commander is.


However I am unable to use SCP Plugin on my freifunk / gluon nodes due to errors with the busybox based sshd... Sad

Here is the logfile I optained when logging in. Any chance to make it work?

Code:

2018-03-09 19:33:28 SFTP:Connecting...
2018-03-09 19:33:29 SFTP:Algorithm: RSA, Fingerprint: [redacted]
2018-03-09 19:33:29 SFTP:Logging in...
2018-03-09 19:33:29 SFTP:PEM: /storage/emulated/0/Documents/id_rsa.pem
2018-03-09 19:33:30 SFTP:SFTP start...
2018-03-09 19:33:30 SFTP:No SFTP, using SCP only...
2018-03-09 19:33:31 SFTP:Connect OK!
2018-03-09 19:33:31 SFTP:LIST /
2018-03-09 19:33:32 SFTP:LIST remote error: ls
2018-03-09 19:33:32 SFTP:LIST remote error: : unrecognized option:
2018-03-09 19:33:32 SFTP:LIST remote error: time-style=+>>%Y%m%d_%H%M%S
2018-03-09 19:33:32 SFTP:LIST remote error:

2018-03-09 19:33:32 SFTP:LIST remote error: BusyBox v1.25.1 ()
2018-03-09 19:33:32 SFTP:LIST remote error:  multi-call binary.

Usage: ls
2018-03-09 19:33:32 SFTP:LIST remote error: [-1AaCxdLHRFplinsehrSXvctu] [-w WIDTH] [FILE]...

List directory contents

   -1   One column output
   -a   Include entries which start with .
   -A   Like -a, but exclude . and ..
   -C   List by columns
   -x   List by lines
   -d   List directory entries instead of contents
   -L   Follow symlinks
   -H   Follow symlinks on command line
   -R   Recurse
   -p   Append / to dir entries
   -F   Append indicator (one of */=@|) to entries
   -l   Long listing format
   -i   List inode numbers
   -n   List numeric UIDs and GIDs instead of names
   -s   List allocated blocks
   -e   List full date and time
   -h   List sizes in human readable format (1K 243M 2G)
   -r   Sort in reverse order
   -S   Sort by size
   -X   Sort by extension
   -v   Sort by version
   -c   With -l: sort by ctime
   -t   With -l: sort by mtime
   -u   With -l: sort by atime
   -w N   Assume the terminal is N columns wide
   --color[={always,never,auto}]   Control coloring


Last edited by mablae on Fri Mar 09, 2018 3:13 pm; edited 2 times in total
Back to top
View user's profile Send private message
mablae
Junior Member
Junior Member


Joined: 09 Mar 2018
Posts: 3

PostPosted: Fri Mar 09, 2018 12:59 pm    Post subject: Reply with quote

Maybe have a check if "ls" is busybox based and then use option -e -l to have full date and time display?!

Would need some abstraction layer, but many embedded devices would profit from a fix!


Thanks in advance. Please let me know what is possible Wink
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35712
Location: Switzerland

PostPosted: Mon Mar 12, 2018 8:41 am    Post subject: Reply with quote

The plugin first sends ls command with parameter
time-style=+>>%Y%m%d_%H%M%S
to get full time details. If this returns an error, TC uses simpler ls commands. For unknown reasons, this detection fails on your server.

Could you create a test account for me, so I could try this in a debugger? Please send the account details to support at ghisler dot com. I do NOT need write access, a subdirectory with some sample files and folders inside is fully sufficient.

Alternatively, can you tell me how to setup this server either on a PC with Linux, or a Raspberry PI? Thanks.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mablae
Junior Member
Junior Member


Joined: 09 Mar 2018
Posts: 3

PostPosted: Mon Mar 12, 2018 11:57 am    Post subject: Reply with quote

Thanks for your reply!

The problem arises on current freifunk / gluon based router firmwares.

I will setup a keypair for you on a local instance I have.

It needs to be accessed by IPv6, too.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander for Android All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Imprint/Impressum: This site is maintained by Ghisler Software GmbH
Privacy Policy | Datenschutzerklärung | Politique de Confidentialité

Using phpBB © phpBB Group