https://github.com/parthb26/ssh-remote-server-setup
https://github.com/parthb26/ssh-remote-server-setup
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/parthb26/ssh-remote-server-setup
- Owner: parthb26
- Created: 2024-11-16T09:56:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-03T18:42:33.000Z (over 1 year ago)
- Last Synced: 2025-01-20T05:55:40.715Z (over 1 year ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS Remote Server Setup Guide
This project provides a comprehensive guide to establish and manage a secure remote server on **AWS EC2**. It covers the essentials from instance creation to secure remote access using SSH.
---
## 🌟 Features
- **Create and configure an AWS EC2 instance** for remote access.
- **Secure server setup** with SSH key-based authentication.
- **Firewall rules** to allow SSH traffic and restrict unwanted access.
- **Best practices** for remote server management.
---
## 🛠Prerequisites
Before you begin, ensure you have the following:
- An **AWS account**.
- Installed CLI tools:
- [AWS CLI](https://aws.amazon.com/cli/)
- [OpenSSH](https://www.openssh.com/)
- Basic knowledge of Linux commands.
---
## 📖 Setup Guide
### 1. **Launch an EC2 Instance**
1. Log in to the [AWS Management Console](https://aws.amazon.com/console/).
2. Navigate to **EC2 Dashboard** > **Instances** > **Launch Instance**.
3. Choose an Amazon Machine Image (AMI), such as **Ubuntu 22.04 LTS**.
4. Select an instance type (e.g., `t2.micro` for free-tier).
5. Configure security groups:
- Allow **SSH (port 22)** from your IP address only.
6. Download the private key (`.pem` file) when prompted.
---
### 2. **Connect to the EC2 Instance**
1. Open a terminal and navigate to the directory containing your `.pem` file.
2. Change the permissions of the private key file:
```bash
chmod 400 your-key.pem