How To - Login using Curl for Windows using Host Keys Authentication with Titan SFTP

How To - Login using Curl for Windows using Host Keys Authentication with Titan SFTP


How To - Login using Curl for Windows using Host Keys Authentication with Titan SFTP

Question

How to connect Curl using Host Key authentication running in Windows

Pre-requisites

Curl for Windows, Titan SFTP, SSH Key pairs

Steps

Download and install Curl for Windows https://curl.se/windows/

Note:
The Microsoft curl build omits several good features, that is why you need to download curl from their website.

  • no Public Suffix List (PSL) support, making it impossible to prevent "super cookies"
  • no support for HTTP/2 or HTTP/3
  • no support for GOPHER(S), LDAP(S), RTMP, RTSP, SCP, SFTP, WS(S))
  • no brotli or zstd compression

I. Download and extract Curl for Windows (in this example: I extracted this under the folder below)

    C:\curl\

II. Generating Keypair in Windows 

C:\Users\nelpa\.ssh>ssh-keygen -t rsa -b 2048
Generating public/private rsa key pair.

Enter file in which to save the key (C:\Users\nelpa/.ssh/id_rsa):

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in C:\Users\nelpa/.ssh/id_rsa

Your public key has been saved in C:\Users\nelpa/.ssh/id_rsa.pub

The key fingerprint is:

SHA256:/hYNT5KbfOFTZhivcImMx+RdjSoPtYu36kIwOhmnHxo nelpa@DESKTOP-3P8H2A0

The key's randomart image is:

+---[RSA 2048]----+

|               o |

|          . o o .|

|         * = O   |

|    . + . & X =  |

|     * oSo ^ B   |

|    E ... * @    |

|     = o.  + o   |

|    . . ... .    |

|         ++.     |

+----[SHA256]-----+


C:\Users\nelpa\.ssh>dir

Volume in drive C has no label.

Volume Serial Number is 0455-A7B4


Directory of C:\Users\nelpa\.ssh


04/10/2025  09:00 AM    <DIR>          .

04/10/2025  09:00 AM    <DIR>          ..

04/10/2025  09:00 AM             1,876 id_rsa

04/10/2025  09:00 AM               404 id_rsa.pub

04/10/2025  04:12 AM               398 known_hosts

04/10/2025  03:59 AM               792 known_hosts - Copy

              4 File(s)          3,470 bytes

              2 Dir(s)  54,705,213,440 bytes free

 

III. Upload the generated Public Keys in Titan

Go to Users -> (Select the user) -> User Services -> SSH/SFTP -> Manage Host Keys -> Import (See below) – Then Add

A screenshot of a computerAI-generated content may be incorrect.

IV.  Make sure that the public key has been added in SSH Host Key Management. See sample below:

A screenshot of a computerAI-generated content may be incorrect. 

V. Assign the Host key to the user (see sample below). Then save.

A screenshot of a computerAI-generated content may be incorrect.

VI. Once added, you can now login from Windows using Curl using the command below:

c:\curl\bin>curl -v -u npalad: --key c:\users\nelpa\.ssh\id_rsa --pubkey c:\users\nelpa\.ssh\id_rsa.pub sftp://192.168.100.109

A black screen with white and blue linesAI-generated content may be incorrect.

SSH/SFTP Server configuration in TitanSFTP

A screenshot of a computerAI-generated content may be incorrect.


 ****END****


    • Related Articles

    • How To Tectia SSHcom Public Key Authentication with Titan SFTP

      How To: Tectia SSH.com Public Key Authentication with Titan SFTP Question How to connect SSH.com’s Tectia client using Public Key authentication Pre-requisites Linux, Titan SFTP, Tectia Steps Download and install Tectia SSH.com from ...
    • SSH Public Key Authentication with Titan Server -- Enable and Configure

      Please see the video below for a visual and descriptive guide to using SSH Public Key Authentication with Titan Server. Titan Server: SSH Public Key Authentication
    • Host Key Algorithms Supported in Titan SFTP Server

      Question Which host key algorithms are supported in Titan SFTP Server? Reasoning As an admin, I would like to know which host key algorithms are supported so we can communicate this to our end users and ensure they can establish a secure connection ...
    • Howto - SFTP Public Key Authentication in TitanSFTP

      How To: SFTP Public Key Authentication in Titan SFTP Question How to configure private/public key authentication in Titan MFT? Reasoning To add more security, instead of using username and password to authenticate users to TitanMFT, we can use ...
    • How To: Create a SFTP Key in Titan SFTP Servcer

      Related To Titan SFTP and Titan MFT Server Question How do I create a SFTP keys in Titan? Reasoning I would like to be able to create a SFTP host keys for secure SFTP encrypted connections. Answer You have the option in Titan to create a SFTP keys. ...