Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Intelligence View
⚡ tsecurity.de Intelligence

From EC2 to GitHub: Connecting Your Cloud Code Like a Pro

Hey DevOps explorer! 👋 Today we're diving into Project 2 of my 7-Day DevOps Challenge, where I connect my Java web app hosted on AWS EC2 to GitHub using Git. By the end of this post, you’ll understand how to: ✅ Install Git on your EC2 inst…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Hey DevOps explorer! 👋 Today we're diving into Project 2 of my 7-Day DevOps Challenge, where I connect my Java web app hosted on AWS EC2 to GitHub using Git. By the end of this post, you’ll understand how to:



✅ Install Git on your EC2 instance


✅ Set up a GitHub repo


✅ Track and commit code


✅ Push code from EC2 to GitHub using a personal access token







🛠 Why This Matters



Version control is a must-have skill for any developer. Whether you're flying solo or collaborating on a team, Git and GitHub help you keep your code safe, traceable, and easy to manage.







☁️ Step 1: Install Git on EC2





sudo dnf update -y
sudo dnf install git -y





Image description

Git is a version control tool that tracks your code changes. Installing it lets you start managing your code history on the server itself.







🔐 Step 2: Set Up GitHub & Create a Repo



Head to GitHub, create a free account (if you haven’t), and start a new repository — this is where your code will live in the cloud.



Image description




💡 A GitHub repository is like a magic folder that tracks every change in your project.








🌱 Step 3: Initialize Local Git Repo





git init





Image description

This sets up Git inside your project folder on EC2, creating a master branch.







✍️ Step 4: Track and Commit Code





git add .
git commit -m "Initial commit"





git add . stages your files, and git commit saves the snapshot. Think of it as telling Git, “Hey, these are the changes I care about.”






First, copy the HTTPS URL from your GitHub repo. Then:




git remote add origin https://github.com/your-username/your-repo-name.git
git branch -M master
git push -u origin master






Oops! Git might ask for your username and password, but GitHub no longer accepts passwords.









🔑 Step 6: Use a GitHub Token Instead



Go to GitHub → Settings → Developer Settings → Personal Access Tokens.


Generate a token with repo access and copy it. Use it when Git asks for a password.



Image description




🔐 A GitHub token is a secure key that acts like a password for Git operations.








💡 Bonus: Editing & Pushing Again



I updated index.jsp, then ran:




git add .
git commit -m "Updated homepage"
git push






And just like that—my changes appeared live in the GitHub repo. Magic!









🔁 What I Learned



Services used: EC2, Git, GitHub, VS Code


Concepts learned: version control, repo setup, staging/commits, GitHub tokens









⏱ Project Reflection



This project took me around 2 hours. The trickiest part? Setting up GitHub authentication.


The best part? Watching my code go live in my repo with one command.






This is just the beginning. Stay tuned for Project 3 tomorrow—CI/CD, here we come! 💥

1. Sofort-Triage & Abwehrmaßnahmen

SOC Incident Playbook: Vulnerability Remediation & Verification
Syntax validiert (0 Fehler)
title: Detect Exploitation - From EC2 to GitHub: Connecting Your Cloud Code Like a Pro
id: 1c8bbdbe-d756-45e0-bcc0-2aef6ad751ec
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-26
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-26"
        description = "YARA Signature for "
    strings:
        $str = "From EC2 to GitHub: Connecting" ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("From EC2 to GitHub Connecting Your Cloud")
| stats count earliest(_time) as first_seen latest(_time) as last_seen by src_ip, dest_ip, dest_host, signature
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| sort - count
Syntax validiert (0 Fehler)
message: "*From EC2 to GitHub Connecting Your Cloud*"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "From EC2 to GitHub Connecting Your Cloud"
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc

2. Cyber Threat Intelligence & Forensik

🎯
MITRE ATT&CK Matrix Navigator 14 Taktiken
Reconnaissance
-
Resource Development
-
Initial Access
Execution
Persistence
-
Privilege Escalation
Defense Evasion
Credential Access
-
Discovery
-
Lateral Movement
-
Collection
-
Command and Control
Exfiltration
-
Impact
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich From EC2 to GitHub: Connecting Your Clou.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten From EC2 to GitHub: Connecting Your Cloud Code Like a Pro

Thematisch verwandte Begriffe: From, GitHub, Connecting, Your · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-100536 | OpenClaw versions before 2026.8.1 fail to validate all source fields in…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag