SFTP PUT

Hi,

ServerA (SFTP server)
ServerB (SFTP client)

ServerB:> sftp user@ServerA
ServerB:> put sample.txt
ServerB:> get sample2.txt

My question is that which machine will encrypt the sample.txt and sample2.txt files.

Thanks

Ideally the file is encrypted on source server and decrypted on destination server.

So in your case ServerB will encrypt sample.txt and ServerA will encrypt sample2.txt

So even a "SFTP client" can encrypt the outgoing file?

SFTP doesn't encrypt, there have to be an encryption tool like pgp gpg or any 3rd party encryption, which are used to encrypt files first and transfer later

Thanks Shailesh.
Another doubt I have is that can ServerA (SFTP server) initiate an SFTP connection to ServerB (Client)...something like:

ServerA:> sftp user2@ServerB

only possible if sftp services are running on your client server too

Okies...in that case ServerB will act as SFTP server...am I making sense here.

yes :slight_smile:

1 Like

Thanks for your time and quick responses Shailesh.