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
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35712
Location: Switzerland

PostPosted: Fri Sep 06, 2013 1:56 pm    Post subject: Reply with quote

/mnt/sdcard is probably a link, not a real folder, so it appears as a file if the sftp server doesn't handle it correctly. Try using the directory history in Total Commander to return to /mnt/sdcard.
_________________
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
charly_35
Junior Member
Junior Member


Joined: 26 Mar 2010
Posts: 20
Location: France Rennes 35

PostPosted: Fri Sep 06, 2013 2:53 pm    Post subject: Reply with quote

Yes this is the pb. In fact, the sdcard is now mounted on /storage and not on /mnt
That was my mistake.
Thanks.
Charly_35
_________________
Cdlt Charles.
Back to top
View user's profile Send private message
Andy8
Junior Member
Junior Member


Joined: 05 Sep 2014
Posts: 6

PostPosted: Fri Sep 05, 2014 5:28 am    Post subject: android sftp connect Reply with quote

I am not able to connect with user name and password:
always get the message:
sftp exhausted available authentication...

how to solve this?

ftp connection works well!
Back to top
View user's profile Send private message Send e-mail
Hacker
Moderator
Moderator


Joined: 06 Feb 2003
Posts: 10886
Location: Bratislava, Slovakia

PostPosted: Fri Sep 05, 2014 10:41 am    Post subject: Reply with quote

Andy8,
Can you connect with other SFTP clients? If yes, please post a log of the connection.

Roman
_________________
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Back to top
View user's profile Send private message Send e-mail
Andy8
Junior Member
Junior Member


Joined: 05 Sep 2014
Posts: 6

PostPosted: Sat Sep 06, 2014 8:43 am    Post subject: Reply with quote

yes I can connect with Linux Mint 17:
Open Thunar Location Bar and type: sftp://192.168.1.xxx:22/

Then a window opens and asks for user and password,
and then it is ok...
I don't have log data of the connection available.

If I use the same data with Android TC, with the same user,
(or at least In try to use the same username...)
the window also opens and asks for the password,
but then with no success, and the message:
sftp exhausted available authentication...

The password is simple ascii with no special characters.
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35712
Location: Switzerland

PostPosted: Sun Sep 07, 2014 2:30 am    Post subject: Reply with quote

The message:
Quote:
sftp exhausted available authentication...

means that the server was configured to use login methods not supported by the SFTP plugin. There are multiple login types:
1. Password: The client sends user name and password in clear text (but the connection itself is of course encrypted)
2. Keyboard interactive: The server asks for user name and password separately, and the client provides them when asked
3. GSSapi: This is some kind of challenge-response method where client and server exchange encrypted messages to authenticate
4. Kerberos: Similar to GSSapi
5. Public key: The user provides a client certificate to log in. This is configured in the plugin via "User certificate (PEM file)".

The sshj library used by TC supports methods 1,2 and 5.

If you have access to the server, look at the file /etc/sshd/sshd_config to find out which methods are enabled. To log in with user name and password, at least one of the following methods needs to be enabled with one of these lines:
ChallengeResponseAuthentication yes
or
PasswordAuthentication yes

If you don't have access to the server, you can install Total Commander for Windows and my SFTP plugin. Then enable FTP logging, and try to log in. The following line will appear in the log:

Supported authentication methods: publickey,password,keyboard-interactive

These 3 are supported by TC for Windows and TC for Android. If none of the 3 is showing up here, you will not be able to log in.
_________________
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
Andy8
Junior Member
Junior Member


Joined: 05 Sep 2014
Posts: 6

PostPosted: Sun Sep 07, 2014 4:33 am    Post subject: Reply with quote

many thanks for answering and for your patience!

I am using method 2 with TC and with Linux.
But sorry to say, I did not notice:
the "new connection" is asking for username and pw
but this is hidden under the keyboard... Confused

now with complete input: IT IS WORKING Laughing FTP and SFTP !!

I have one more question: will open a new tobic
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35712
Location: Switzerland

PostPosted: Mon Sep 08, 2014 3:10 am    Post subject: Reply with quote

2Andy8
That's odd, the input dialog should always appear above the keyboard! What device are you using? Screen resolution?
_________________
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
Andy8
Junior Member
Junior Member


Joined: 05 Sep 2014
Posts: 6

PostPosted: Mon Sep 08, 2014 8:32 am    Post subject: Reply with quote

I use an Nexus 7, and the screen resolution is not
the problem.
IMHO this is system immanent: because the keyboard
always pops up if an input is required.
I was just not careful enough to check it out... Embarassed
Anyway, thank you for your help!
Back to top
View user's profile Send private message Send e-mail
ulicky
New Member
New Member


Joined: 08 Dec 2014
Posts: 1

PostPosted: Mon Dec 08, 2014 4:23 pm    Post subject: Reply with quote

I am not able to connect with user name and password AND certificate:
always get the message:
sftp exhausted available authentication...

My SFTP needs valid user certificate AND username/password auth.
I see when cert is in use, this plugin is not using password as password for user, but as password for certificate. Can this be altered to way to support username, password + certificate and its password? Ideally include certificate not as point to file, but paste to some textbox? Thanks
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: Thu Dec 11, 2014 4:54 am    Post subject: Reply with quote

Sorry, this isn't supported. If you enter a password, it will be used to decrypt the user certificate.
_________________
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: Sun Jun 26, 2016 4:02 am    Post subject: Reply with quote

ghisler(Author) wrote:
About the large version: If your client certificate file (*.pem) doesn't contain the public key, you need to put the public key (*.key) in the same directory and give it the same name as the .pem file.


Through desktop TC, I successfully connect to a linux server, which grants access to my pub key. So I use the following keys on my desktop TC:

id_rsa
id_rsa.pub

IIUC, .pem is just an OpenSSH private key with pem extension. So I copied id_rsa to id_rsa.pem and id_rsa.pub to id_rsa.key, and uploaded to my tablet. However I cannot make connection by using id_rsa.pem on my tablet as it times out.

What am I doing wrong?
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 Jun 27, 2016 6:51 am    Post subject: Reply with quote

Please create a log file of the login process:

1. Switch to the internal SD card by going to the home folder, and then going to "SD-Card"
2. Create a new folder named
.TotalCommander
including the dot at the beginning (if it doesn't exist yet)
3. You may need to enable the display of hidden files in the TC configuration if you cannot see that folder.
4. Go inside this folder .TotalCommander
5. Create a new file named log.txt by holding down a finger on the first line (..)
6. Close Total Commander via "X" button and restart it

Please replace any sensitive names by other things before posting, but please do not delete any lines.
_________________
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: Mon Jun 27, 2016 9:20 am    Post subject: Reply with quote

There in not much info:

Code:
2016-06-27 17:09:33 SFTP:refresh list
2016-06-27 17:09:38 SFTP:Connecting...
2016-06-27 17:10:41 SFTP:ConnectException: failed to connect to /192.168.100.3 (port 22): connect failed: ETIMEDOUT (Connection timed out)


Previously, when server was not restricted to allowed keys, but just with password I was connecting successfully.
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 Jun 27, 2016 9:25 am    Post subject: Reply with quote

This means that your device couldn't reach the IP address given. It didn't even come to the point where it could send login information like client certificate. Maybe it's blocked by a firewall, or in wrong subnet?

Can you ping the IP address from Android?
_________________
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
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 2 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