Now I am confused because if SFTP uses keys to encrypt data then. It send public key to computer "DESTINATION" the server and keep private key secure. Now I think the computer named "SOURCE" client will generate pair of public and private keys. The initial key pair is used for authentication, then the client and server work together to generate a symmetric key which is used for encrypting the connection. However, they are not the same key pairs. Let's rename those to SOURCE client and DESTINATION serverīoth. Lets say I am using computer name "SOURCE" and I need to send some file to another computer name "DESTINATION" The public key cannot even decrypt it's own encrypted messages. Information is encrypted using the public key and decrypted using the private key. To be honest, it almost doesn't matter what you do with the public key, except for deleting it. If you ever find yourself transmitting a private key you are doing something wrong. They are as they sound the private key should always remain private. The keys are a key pair consisting of a public key and private key. Now my understanding is anyone can have a public key so if man in middle has a public key and if he install it on his PC, how security works then?īefore I start correcting misconceptions let's put down some foundation-level information. So computer "SOURCE" has both private and public key and computer "DESTINATION" has only the public key. On another note if KEYS are only use to authenticate then how this works. Now I am confused because if SFTP uses keys to encrypt data then if computer "SOURCE" encrypt the data using public key and send to computer name "DESTINATION", The Destination computer does not have private key to decrypt the file, then how is this all working? It send public key to computer "DESTINATION" and keep private key secure. Now I think the computer named "SOURCE" will generate pair of public and private keys. Lets say I am using computer name "SOURCE" and I need to send some file to another computer name "DESTINATION". What is role of keys in SFTP? Is it just for authentication or also encrypting data? I research half a day on net but could not found relevant ans. I am new to SFTP and need help understanding following.
0 Comments
Leave a Reply. |