# SFTP

SFTP is a highly secure file transfer protocol that uses Secure Shell (SSH) to provide encryption and operates through a single port.

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FtZQUJLYCeZg57qcMYn0h%2Fsftp1.png?alt=media&#x26;token=21815b02-7e31-4c59-ad40-efaf0a32526b" alt=""><figcaption></figcaption></figure>

*Private Key:* Uses a private key file for secure client authentication, pairing with a public key already configured on the server to ensure a highly secure, passwordless connection. Requires a file path to the private key file (e.g., .pem or .ppk) and an optional passphrase to decrypt the private key file if encrypted.

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FSoEOE2vL6EI5tTgcrYxm%2Fsftp2.png?alt=media&#x26;token=d12a95fe-aa6f-4b0d-9c75-0dd491f046a5" alt=""><figcaption></figcaption></figure>

*X.509 Certificate:* Uses an X.509 certificate for authentication, including the public key and metadata signed by a trusted certificate authority, often used in enterprise setups for added validation. Requires a file path to the certificate file (e.g., .crt or .cer) and a passphrase to access the certificate's private key securely.

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fy92BdhX7g3X2wxhFNWkZ%2Fsftp3.png?alt=media&#x26;token=b0c5e243-fac3-4fb0-b3cd-321fd56c2a63" alt=""><figcaption></figcaption></figure>
