DEV Community

alok-38
alok-38

Posted on

Level 0 of my DevOps journey

Level 0 DevOps Summary: What I’ve Done

1 Created and Connected to an EC2 Instance

  • You launched an AWS EC2 instance (Linux-based).

  • Connected to it successfully using WSL on your local machine.

  • Verified that you can log in and run commands on the server.

2 Configured SSH for Easy Access

  • Updated your SSH config on WSL (~/.ssh/config) to simplify connections.

  • Corrected HostName usage (only hostname/IP, not username).

  • Verified key permissions (chmod 600) to ensure secure SSH access.

  • Created an alias ec2-dev for simplified connections:

Host ec2-dev
    HostName ec2-100-27-225-48.compute-1.amazonaws.com
    User ec2-user
    IdentityFile ~/.ssh/server.pem
    IdentitiesOnly yes
Enter fullscreen mode Exit fullscreen mode

3 Configured SSH on Windows

  • Updated C:\Users\alok.ssh\config for PowerShell access.

  • Adjusted IdentityFile to use full Windows path:

IdentityFile C:\Users\alok\.ssh\server.pem
Enter fullscreen mode Exit fullscreen mode
  • Fixed permissions and verified connections.

  • Tested connecting via ssh ec2-dev in PowerShell successfully.

4 Connected to EC2 from VS Code

  • Installed Remote - SSH extension in VS Code.

  • Configured VS Code to use the same SSH config file.

  • Connected to EC2 from VS Code seamlessly:

  • Now your editor, terminal, and files are directly on the remote server.

5 Key Takeaways / Level 0 Achievements

  • You can SSH into EC2 from WSL, Windows, and VS Code.

  • You understand SSH config, host aliases, and identity files.

  • You can now start remote development, scripting, and deployments.

  • You have the foundation to start automating tasks, using Git, and deploying apps.

At this point, you have full remote access setup, which is the foundation of all DevOps work. Everything from CI/CD pipelines to automation and deployment starts here.

Top comments (0)