How to connect to a server via SSH
🔧 What you need:
- Server IP address or domain name
- Login (usually root or another user)
- Password or SSH key
- Terminal
⸻
Instruction:
- Open the terminal (Linux or macOS) or PowerShell (Windows)
- Enter the command:
ssh username@server_ip
Example:ssh root@192.168.1.100
orssh user@newserver.com
- If it's your first time — you'll see the message “Are you sure you want to continue connecting?” Type yes and press Enter
- 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