-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2017-02-19 a las 04:21 +0100, Carlos E. R. escribió:
On 2017-02-19 03:23, Fraser_Bell wrote:
Ghost Commander's SFTP plugin need to be installed. Once installed it appears in the application's home: list. The plugin supports either password authentication or keyfile authentication.
...
You will be asked for the username and password. In the case of the password authentication, the password is your SSH host's password, in the case of the keyfile authentication, the password is the passphrase to open the key. https://sites.google.com/site/ghostcommander1/info#TOC-SFTP-access
What a pain!
Well, in short, it doesn't work. The help link says: +++--------------------------------- SFTP access - ----------- SFTP stands for SSH File Transfer Protocol, or Secure File Transfer Protocol, is a file transfer protocol that works over a secure connection. Ghost Commander's SFTP plugin need to be installed. Once installed it appears in the application's home: list. The plugin supports either password authentication or keyfile authentication. To connect using the key-file authentication rename the private key file to the exact same name as the host you're connecting to, and put the file to the folder /sdcard/.GhostCommander/keys/ You will be asked for the username and password. In the case of the password authentication, the password is your SSH host's password, in the case of the keyfile authentication, the password is the passphrase to open the key. Please note: Even though your private key file may start with "-----BEGIN...", it could not be in the expected format. A keyfile in the correct format should have "-----BEGIN RSA PRIVATE KEY-----" in the first line. If your key starts with "-----BEGIN PRIVATE KEY-----", you have to convert it to the PKCS#1 key format. On Windows, this can be done by using the free "puttygen" tool, which can be downloaded from the Putty website. Simply load your key and then use the "Conversions/Export OpenSSH key" functionality to get a proper PEM file. On other operating systems, you can use the openssl command-line tool. The command is as follows: openssl rsa -in old_keyfile -out new_keyfile The command like above produces a keyfile without password protection. If you wish to use a password, you can add a -aes256 flag: openssl rsa -in old_keyfile -aes256 -out new_keyfile - ---------------------------------++- I generated the key pair with this command on my laptop (the help could reccomend the appropriate command to generate the key. It assumes everybody knows it. The Linux command has dozens, perhaps hundreds of options. All apps I have tried fail in this respect): ssh-keygen -t rsa -f host.somewhere -C TabletGen I pasted the pub part in the appropriate part of the server, I placed the private key on /sdcard/.GhostCommander/keys/host.somewhere I entered the data in the SFTP plugin of Ghost Commander. Tried to connect... failed. Keeps asking for the password (which is not clear if is the login/pass or the pass for the key). Well, it is neither. The app is attemting to connect on port 22, which is not the port... and nowhere to tell it to use another port! - -- Cheers Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAlip++EACgkQja8UbcUWM1x5TgEAhl8d/Wt9tRgKnqhfn7r4zz3v TyfPpa2DLHomx9FphIYA+waKXp5ALyHHv8FJGLZwVoqdhg8BAFV+N3u3E4/3rnjZ =xWvf -----END PGP SIGNATURE-----