Can TCs SFTP use priv/pub keys (.ppk) for autom. login ?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
elroy
Junior Member
Junior Member
Posts: 13
Joined: 2010-12-25, 15:36 UTC

Can TCs SFTP use priv/pub keys (.ppk) for autom. login ?

Post by *elroy »

I am using putty to login to certain servers and make use of a (local) .ppk file, while at the remote servers in /root/.ssh is an authorized_keys file.

Can TC make use of those file for autom. login via SFTP ?

When configuring a SFTP login in TC you can enter a .pub and .pem file. Problems are:

- that are 2 extra files while there are already files available local and remote (see above)

- in the help section of creating a .pem file there is written to create a .pem file by making use of the Conversion Menu. Can not find that menu (I am using Editpad Pro for editting files)
User avatar
Dalai
Power Member
Power Member
Posts: 10031
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Can TCs SFTP use priv/pub keys (.ppk) for autom. login ?

Post by *Dalai »

elroy wrote:Can TC make use of those file for autom. login via SFTP ?
No, not directly. But you can certainly create a key set that TC's SFTP plugin is able to use. I've been using this for many years now for several Linux servers.
When configuring a SFTP login in TC you can enter a .pub and .pem file.
Don't take the extensions so seriously. I use .key for the private and .pub for the public key.
- that are 2 extra files while there are already files available local and remote (see above)
The remote file has nothing to do with this (.authorized_keys is a completely different thing). It's only about the key files.
- in the help section of creating a .pem file there is written to create a .pem file by making use of the Conversion Menu. Can not find that menu (I am using Editpad Pro for editting files)
Then you missed something important:
SFTP readme.txt wrote:Authentication using a client certificate in OpenSSH format:
============================================================
The keys must be in OpenSSH format. Follow these steps to
convert a Putty (*.ppk) key to OpenSSH format:
1. Start puttygen.exe (part of putty installation)
2. Load your Putty key into it
3. Do NOT click on "Save public key", it creates an
incompatible key! Instead, select the text in the
section "Public key for pasting into OpenSSH...
and press Ctrl+C (=Copy to clipboard)
4. Create a new file with extension .pub (Shift+F4 in
Total Commander) and press Ctrl+V (=Paste)
5. Choose "Export SSH key" from the "Conversions" menu
to save the *.pem file.
It's all there, and it works.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
elroy
Junior Member
Junior Member
Posts: 13
Joined: 2010-12-25, 15:36 UTC

Re: Can TCs SFTP use priv/pub keys (.ppk) for autom. login ?

Post by *elroy »

Dalei: it works, thx
Post Reply