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 

New plugin available: SFTP
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander for Android Printable version
View previous topic :: View next topic  
Author Message
obmana
Junior Member
Junior Member


Joined: 28 Aug 2013
Posts: 48

PostPosted: Mon Jun 27, 2016 9:41 am    Post subject: Reply with quote

As said I successfully connected previously when pub key was not needed. I can connect to the same machine through LAN (TC plugin)

From log.txt:

Code:
2016-06-27 17:12:08 LAN:SMB:anon@192.168.100.3/pdf/
2016-06-27 17:12:22 LAN:SMB:anon@192.168.100.3/pdf/scripts/


And I can connect with same keys from my desktop through TC SFTP plugin
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35424
Location: Switzerland

PostPosted: Tue Jun 28, 2016 2:22 pm    Post subject: Reply with quote

But the log file clearly shows that no connection could be established. Could you temporarily allow password login again to check this?
_________________
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
obmana
Junior Member
Junior Member


Joined: 28 Aug 2013
Posts: 48

PostPosted: Wed Jun 29, 2016 4:17 am    Post subject: Reply with quote

You were right - as I could not connect just with password login, I temporary disabled firewall for private networks, and now it works, thanks Smile

Long story short - I overlooked that I was previously using Bitvise SSH Server and now I use sshd from WSL Bash shell
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35424
Location: Switzerland

PostPosted: Wed Jun 29, 2016 10:28 am    Post subject: Reply with quote

Nice to see that you could resolve it, thanks for your feedback!
_________________
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
pwd4361
New Member
New Member


Joined: 10 Jul 2016
Posts: 1

PostPosted: Sun Jul 10, 2016 11:03 am    Post subject: Reply with quote

I've just started using the sftp plugin, and I apologise in advance if I'm missing something obvious.

I'm trying to get some images from a machine which runs an ssh service. I can connect to it using the sftp plugin and see the directories and files - but when I select one, the only two options I get are "Download+open" and "Download+edit". The file gets downloaded to a temporary directory, and deleted when I've finished using it.

How do I save the file permanently?
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35424
Location: Switzerland

PostPosted: Mon Jul 11, 2016 12:39 am    Post subject: Reply with quote

You seem to be refering to the Android plugin - this thread is about the Windows plugin. But the same applies to both plugins: Do not try to open the file, it will be downloaded only temporarily. Instead, select it (or multiple files) and copy it to the other panel with the copy button (Total Commander is a 2 panel file manager).
_________________
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
bvsmdjktgc
Junior Member
Junior Member


Joined: 18 Dec 2016
Posts: 6

PostPosted: Sun Dec 18, 2016 9:01 am    Post subject: Reply with quote

Can I connect to a ssh server with an ed25519 key?
You use the sshj library which supports ed25519.

But as there is no pem file for ed25519, I am wondering how to connect via the SFTP plugin!?
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35424
Location: Switzerland

PostPosted: Mon Dec 19, 2016 4:41 am    Post subject: Reply with quote

You need to pass both the public key and private key to the SFTP plugin. The pem file has to contain the private key, and the pub the public key. The plugin then calls
libssh2_userauth_publickey_fromfile.

There must be some kind of private key for ed25519 too, otherwise there would be no secret if there were only a public key.
_________________
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
bvsmdjktgc
Junior Member
Junior Member


Joined: 18 Dec 2016
Posts: 6

PostPosted: Mon Dec 19, 2016 11:05 am    Post subject: Reply with quote

Thank you for your quick reply.

When I manually put the 'private' and 'public' part together and save it as pem, then I get the error:
Code:

UserAuthException: Exhausted available authentication methods


I searched for a non manual method, but there doesn't seem to exist one:

Code:

ssh-keeygen -f id_ed25519 -e -m pem
do_convert_to_pem: unsupported key type ED25519


Code:

-o
Causes ssh-keeygen to save private keys using the new OpenSSH format
rather than the more compatible PEM format. The new format has
increased resistance to brute-force password cracking but is not
supported by versions of OpenSSH prior to 6.5. Ed25519 keys always
use the new private key format.


But on supposedly sshj can handle Ed25519, see the github page of sshj README section supported-algorithms (sry I cannot post links).
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35424
Location: Switzerland

PostPosted: Wed Dec 21, 2016 11:05 am    Post subject: Reply with quote

Sorry, I thought that this was about the Windows plugin, since this thread is for the Windows SFTP plugin.

The Android plugin uses an older sshj version which doesn't support Ed25519 yet.

According to the log, ed-25519 was only added recently:

Quote:
SSHJ 0.19.0 (2016-11-25)
Fixed #276: Add support for ed-25519 and new OpenSSH key format


I will try to use the new library, but I doubt that I can find a server which supports it.

Would you be willing to test a pre-release version?
_________________
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
bvsmdjktgc
Junior Member
Junior Member


Joined: 18 Dec 2016
Posts: 6

PostPosted: Wed Dec 21, 2016 4:52 pm    Post subject: Reply with quote

ghisler(Author) wrote:
Sorry, I thought that this was about the Windows plugin, since this thread is for the Windows SFTP plugin.


After checking the first post in this thread I thought this thread is about the Android plugin though.

ghisler(Author) wrote:

Would you be willing to test a pre-release version?


Sure I am happy to test it!
Back to top
View user's profile Send private message
GPEX
Junior Member
Junior Member


Joined: 29 Jan 2017
Posts: 5

PostPosted: Sun Jan 29, 2017 4:54 pm    Post subject: Reply with quote

Great! Exactly what I need, because my main system is Linux
Back to top
View user's profile Send private message
bvsmdjktgc
Junior Member
Junior Member


Joined: 18 Dec 2016
Posts: 6

PostPosted: Tue May 15, 2018 3:27 pm    Post subject: Reply with quote

ghisler(Author) wrote:


The Android plugin uses an older sshj version which doesn't support Ed25519 yet.

According to the log, ed-25519 was only added recently:

Quote:
SSHJ 0.19.0 (2016-11-25)
Fixed #276: Add support for ed-25519 and new OpenSSH key format


I will try to use the new library, but I doubt that I can find a server which supports it.


Just needed to access that very same server with the ed25519 certificate.
So I remembered this topic.

Now I tried it again, and now I get following error:
Code:
UserAuthException: Exhausted available authentication methods

IOException: Unsupported cipher aes256-ctr for key pair.


Which version of sshj do you use?
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35424
Location: Switzerland

PostPosted: Wed May 16, 2018 4:25 am    Post subject: Reply with quote

Is this about the Android or Windows version of the plugin? I ask because the thread is about the Windows plugin, but you mention Android too.
_________________
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
bvsmdjktgc
Junior Member
Junior Member


Joined: 18 Dec 2016
Posts: 6

PostPosted: Wed May 16, 2018 1:41 pm    Post subject: Re: New plugin available: SFTP Reply with quote

ghisler(Author) wrote:
A new plugin is now available:

SFTP (Secure FTP over SSH).

To download and install it, you need to tap on the green "+" sign (Add plugins) in the TC home folder. Direct link.

The plugin uses the sshj library because there is no OpenSSH on Android. I have modified the library a bit so it supports all Android versions since Android 1.5 (instead of >=2.3).

There are two versions of this plugin:
1. A smaller version which supports login via user name and password only. This version relies on built-in Android crypto functions. Use this if you can.

2. A large (1 MByte) version which also supports login with a client certificate. The certificate must be in PEM format (just like for the desktop version of TC), which may be password protected (recommended). If you enter a password AND specify a PEM file, TC will assume that the password is for decrypting the PEM.

Unfortunately user certificate authentication only works on Android 2.0 and later versions. The plugin is that large because it contains the entire BouncyCastle crypto library (with renamed classes to replace the incomplete Android library).

Please test it and send me feedback!
Currently this plugin is only available as a direct download. I will put the smaller version on Google Play once the beta test is over.


This is a quote of the first post of this thread. I read 7x the word Android in the opening post of this thread. So I assume that this is the Android version!? Or am I terribly wrong?
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
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
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