How to connect to a server via SSH

🔧 What you need:

  1. Server IP address or domain name
  2. Login (usually root or another user)
  3. Password or SSH key
  4. Terminal

Instruction:

  1. Open the terminal (Linux or macOS) or PowerShell (Windows)
  2. Enter the command: ssh username@server_ip
    Example: ssh root@192.168.1.100 or ssh user@newserver.com
  3. If it's your first time — you'll see the message “Are you sure you want to continue connecting?” Type yes and press Enter
  4. Enter the password, if you’re not using an SSH key

🔑 If you’re using an SSH key:

If you have a private key (e.g., id_rsa or id_ed25519), use: ssh -i /path/to/private_key username@server_ip

Example: ssh -i ~/.ssh/id_ed25519 root@192.168.1.100