sftp - ftps

 

📁 SFTP ve FTPS: Güvenli Dosya Transfer Protokolleri (Türkçe)

SFTP: Güvenli Dosya Transferi

SFTP (SSH File Transfer Protocol), güvenli dosya transferi sağlamak için kullanılan bir protokoldür. SSH protokol ailesinin bir parçasıdır ve port 22 üzerinden çalışır. Eğer OpenSSH server yapılandırmasında etkinleştirilmişse, şu şekilde bağlanabilirsiniz:

bash
sftp kullanıcı_adı@sunucu_adresi

Bağlantı sağlandıktan sonra, dosya indirme ve yükleme işlemleri için get ve put komutları kullanılabilir. Örneğin:

  • get dosya_adı: Dosyayı indirmek için

  • put dosya_adı: Dosyayı yüklemek için

SFTP komutları genellikle Unix benzeri sistemlerde kullanılır ve FTP komutlarından farklılık gösterebilir.


SFTP ve FTPS Arasındaki Farklar

SFTP, FTPS ile karıştırılmamalıdır. FTPS, File Transfer Protocol Secure anlamına gelir ve güvenli dosya transferini sağlamak için TLS (Transport Layer Security) kullanır. Bu, HTTPS'nin nasıl güvenli hale geldiğine benzer bir yöntemdir. FTPS'in güvenliği için TLS kullanılması, verilerin şifrelenmesini sağlar.

FTP, port 21 üzerinden çalışırken, FTPS genellikle port 990 kullanır. FTPS, ayrıca sertifika kurulumu gerektirir ve sıkı güvenlik duvarlarından geçişi zor olabilir çünkü kontrol ve veri transferi için ayrı bağlantılar kullanır.


SFTP Sunucusu Kurulumu

SFTP sunucusu kurmak oldukça kolaydır; OpenSSH sunucusunda yalnızca bir seçeneği etkinleştirmeniz yeterlidir. HTTPS, SMTPS, POP3S, IMAPS gibi TLS güvenliğini kullanan diğer protokoller gibi, FTPS de düzgün bir TLS sertifikası gerektirir. Sertifika kurulumuyla güvenli bir şekilde çalışabilir.


📁 SFTP and FTPS: Secure File Transfer Protocols (Expanded English Version)

SFTP: Secure File Transfer

SFTP (SSH File Transfer Protocol) is a protocol used for secure file transfer. It is part of the SSH protocol suite and uses port 22 for communication. If enabled in the OpenSSH server configuration, you can connect to the server using:

bash
sftp username@hostname

Once logged in, you can issue commands such as get and put to download and upload files, respectively:

  • get filename: To download a file

  • put filename: To upload a file

Generally, SFTP commands are Unix-like and can differ from traditional FTP commands.


SFTP vs FTPS

SFTP should not be confused with FTPS. FTPS stands for File Transfer Protocol Secure, and it secures file transfers using TLS (Transport Layer Security), much like HTTPS secures web traffic.

FTPS typically uses port 990 (as opposed to FTP’s port 21). FTPS also requires proper certificate setup, and it can be challenging to pass through strict firewalls because it uses separate connections for control and data transfer.


Setting Up an SFTP Server

Setting up anFTP server is simple; you just need to enable the appropriate option within the OpenSSH server configuration. Similar to protocols like HTTPS, SMTPS, POP3S, IMAPS, and others that rely on TLS for security, FTPS also requires a valid TLS certificate for secure operation.