Skip to content
Tutorials
Esc
  • Type at least two characters.
Browse Tutorials

History: Decoding SSH Key Files

Import from Docusaurus (tutorial/Linux/03 - SSH Key Files.mdx) (first version)

Back to history
Added: # Decoding SSH Key Files
Added:
Added: SSH (Secure Shell) is a protocol used to securely log into remote systems. Instead of using a password, you can authenticate using **SSH key pairs**. This method is more secure and commonly used for managing remote servers, especially in cloud environments like AWS.
Added:
Added: ## 🔐 What are SSH Keys?
Added:
Added: SSH key-based authentication uses a **pair of cryptographic keys**:
Added:
Added: - **Private Key** – kept secret by the user.
Added: - **Public Key** – placed on the remote system you want to access.
Added:
Added: ## 📁 Common SSH Key File Formats
Added:
Added: ### `.pem` (Privacy Enhanced Mail)
Added:
Added: - **Default format for AWS EC2 key pairs**.
Added: - PEM files are used by OpenSSH (Linux/macOS) for SSH authentication.
Added: - Typically used directly with the `ssh` command.
Added:
Added: ### `.ppk` (PuTTY Private Key)
Added:
Added: - A format used by **PuTTY**, a popular SSH client on Windows.
Added: - You can convert `.pem` to `.ppk` using **PuTTYgen**.
Added:
Added: ## 🔧 Using SSH Keys in Linux
Added:
Added: ### 1. Connect Using a `.pem` File
Added:
Added: If you have a `.pem` file (e.g., from AWS EC2):
Added:
Added: ```bash
Added: chmod 400 my-key.pem
Added: ssh -i my-key.pem username@remote-host
Added: ```