Overview
SSH (Secure Shell) is a secure protocol used to remotely access Linux servers, network devices, and virtual machines through a command-line interface.
SSH allows administrators to:
- Access remote servers securely
- Execute commands remotely
- Transfer files securely
- Manage systems over a network
Prerequisites
Before accessing a server through SSH, ensure you have:
- Server IP address or hostname
- Valid username
- Password or SSH private key
- Network connectivity to the server// your code here
SSH service running on the target server
Default SSH Port
SSH uses the following default port:
If the server uses a custom SSH port, use that port during connection.
Access SSH from Windows
Method 1: Using Command Prompt / PowerShell
Step 1: Open Command Prompt
Windows + RType:
cmd
or open PowerShell.
Step 2: Run SSH Command
Syntax:
ssh username@server_ip
Example:
ssh [email protected]
Step 3: Accept Host Key
First-time connection message:
Are you sure you want to continue connecting (yes/no)?