How does ssh exactly work??
Ok, I kinda got myself confused. This is how it is:
I have 2 PCs, both have ssh installed. I know for sure that on the linux machine i have ssh server/client installed. On the iMAC i think its installed standard. If I connect using the ssh command (ssh name@machine) it asks me for the username and password.
--> Is this already encrypted when being sent over the network? If yes can't any PC that has ssh installed encrypt the data ?
Now I read using key pairs is used to encrypt, things going over the network. --> How does this encryption differ from the normal encryption? (if it is encrypted) Is it kind of a double encryption ?
--> Do both PCs need a private key and a public key? (otherwise isnt it only encrypted one way with the public key?)
--> What does the passphrase do? Is it to protect incase you forgot to lock/logout and someone uses ssh on your computer?
lots of questions :) But I'm really thankful if you answer me those. Thanks a lot! :))