RHEL 9 en AWS EC2 con PuTTY

Guía paso a paso para lanzar RHEL 9 en AWS EC2: crear instancia, configurar SSH con PuTTY y claves, usar sudo, resolver errores comunes y considerar Rocky Linux o AlmaLinux en la capa gratuita para practicar RHCSA y seguridad.

18 ago 2025 • 3 min read • Q2BSTUDIO Team

Inteligencia-Artificial-

Paso 1 Lanzar una instancia RHEL 9 en AWS EC2. Accede al AWS Management Console, ve a EC2 y selecciona Launch Instances. Asigna un nombre reconocible a la máquina, por ejemplo rhel9-lab. En Amazon Machine Image busca Red Hat Enterprise Linux 9 y selecciona la versión más reciente. Elige el tipo de instancia según tus necesidades.

Paso 2 Elegir el tipo de instancia. Para quienes buscan aprovechar la capa gratuita considera t2.micro o t3.micro ya que son elegibles en free tier, pero ten en cuenta que RHEL tiene coste de licencia incluso en instancia gratis. Si prefieres practicar sin costes reales y mantener compatibilidad con RHCSA elige Rocky Linux 9 o AlmaLinux 9 como alternativas gratuitas y muy similares a RHEL.

Paso 3 Configurar el Security Group para SSH. Los security groups controlan el tráfico hacia y desde tu VM. Añade una regla inbound tipo SSH puerto 22. Como source usa My IP para mayor seguridad o, si necesitas flexibilidad durante pruebas, usa Anywhere 0.0.0.0/0 pero recuerda restringirlo en entornos de producción por buenas prácticas de ciberseguridad.

Paso 4 Descargar y convertir la clave de AWS. Al lanzar la instancia AWS pedirá crear o usar un Key Pair. Descarga el archivo .pem y guárdalo en un lugar seguro. Para conectar desde Windows con PuTTY instala PuTTYgen, carga el .pem con Load (selecciona All Files si no aparece), y luego guarda la clave privada en formato .ppk con Save Private Key. PuTTY necesita .ppk para la autenticación; la clave pública ya está en la instancia AWS.

Paso 5 Conectar con PuTTY. Abre PuTTY y en Host Name introduce ec2-user@tu_IP_publica_o_DNS. En Connection SSH Auth selecciona tu archivo .ppk como clave privada. Pulsa Open y acepta la alerta de seguridad SSH. Deberías llegar como ec2-user o el usuario predeterminado de la AMI.

Paso 6 Obtener acceso root. AWS deshabilita el login directo como root por seguridad. Para ejecutar comandos con privilegios utiliza sudo. Por ejemplo ejecuta sudo -i o antepone sudo a los comandos que requieran privilegios para realizar prácticas RHCSA.

Problemas comunes y resolución. Error Connection timed out revisa las reglas del security group y asegúrate de que el puerto 22 esté abierto y la IP origen permitida. Error Server refused our key verifica que cargaste el .ppk correcto en PuTTY y que la instancia se lanzó con el key pair esperado. Solo funciona desde una ubicación revisa si el security group está configurado en My IP y cambia temporalmente a Anywhere durante pruebas si necesitas conectar desde múltiples redes pero recuerda volver a restringirlo.

Consejo final Para preparar el examen RHCSA usar AWS con RHEL 9 es cómodo y realista, pero si quieres evitar costes mientras aprendes Linux considera Rocky Linux 9 o AlmaLinux 9 en t2.micro dentro de la capa gratuita. Practica sudo, gestión de usuarios, permisos, servicios y firewall para estar listo para el examen.

Sobre Q2BSTUDIO. En Q2BSTUDIO somos una empresa de desarrollo de software especializada en aplicaciones a medida y software a medida, además de ofrecer servicios de inteligencia artificial e ia para empresas, agentes IA, ciberseguridad, servicios cloud aws y azure y servicios inteligencia de negocio incluyendo power bi. Si necesitas entornos cloud, automatización, soluciones de inteligencia artificial o asesoría en ciberseguridad y desarrollo de aplicaciones a medida nuestro equipo puede ayudarte a diseñar la solución ideal para tus proyectos.

Contacta con Q2BSTUDIO para obtener soporte en despliegues en AWS y Azure, migraciones, arquitectura cloud, proyectos de inteligencia artificial aplicada, agentes IA y cuadros de mando con Power BI que mejoren la toma de decisiones en tu empresa.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.

Live Chat