What’s inside .ssh
?
After generating a key, your .ssh
folder (usually in C:\Users\<yourname>\.ssh\
) might contain:
id_ed25519
orid_rsa
– your private key (keep this safe!)id_ed25519.pub
orid_rsa.pub
– your public key (used to connect)known_hosts
– tracks servers you’ve connected to beforeconfig
– optional but handy file to simplify commands
**What does **known_hosts
do?
Every time you connect to a new server, its signature is added here. This helps verify the identity of the server next time.
If you ever see:
known_hosts
. This can happen if:
- The instance was terminated and replaced
- You’re connecting to a different host than expected
What’s in a config file?
Create a plain text file namedconfig
inside .ssh
and add:
Create a new Host block for each instance if you use multiple.
Public key vs. private key
- The
.pub
file (public) is safe to share—it’s how servers recognize you - The private key must stay private—it proves who you are