Instala pgAdmin en Ubuntu y conecta RDS

Guía práctica para instalar pgAdmin en Ubuntu y conectar con AWS RDS PostgreSQL de forma segura, verificar conectividad y aplicar buenas prácticas de seguridad.

7 sept 2025 • 4 min read • Q2BSTUDIO Team

Inteligencia-Artificial-

Instala pgAdmin en Ubuntu y conecta RDS de forma segura y profesional. En esta guía práctica aprenderás a configurar pgAdmin, enlazarlo con una base de datos PostgreSQL en AWS RDS y verificar la conectividad. Ideal para equipos de datos, DevOps y analítica que trabajan con servicios cloud AWS y Azure, inteligencia de negocio y automatización.

Requisitos previos: Ubuntu con permisos sudo, conexión a internet, una instancia AWS RDS PostgreSQL creada, conocer el endpoint de RDS y el usuario maestro, y tener habilitado el puerto 5432 en la red de origen que usas.

Paso 1 Instalación de pgAdmin en Ubuntu

1 Actualiza el sistema con sudo apt update && sudo apt upgrade -y. 2 Instala dependencias con sudo apt install curl wget ca-certificates gnupg -y. 3 Importa la clave del repositorio con curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/pgadmin.gpg. 4 Añade el repositorio con echo deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main | sudo tee /etc/apt/sources.list.d/pgadmin4.list. 5 Actualiza índices con sudo apt update. 6 Instala pgAdmin con sudo apt install pgadmin4 -y.

Paso 2 Ejecutar pgAdmin

Modo escritorio ejecuta pgadmin4 y se abrirá la interfaz gráfica. Modo web ejecuta sudo /usr/pgadmin4/bin/setup-web.sh, define correo y contraseña de acceso para pgAdmin y accede desde el navegador en https://127.0.0.1/pgadmin4.

Paso 3 Conectar AWS RDS a pgAdmin

1 Abre pgAdmin. 2 Clic derecho en Servers y elige Create y luego Server. 3 En General define un nombre identificable como AWS RDS. 4 En Connection completa Host name o address con el endpoint de tu RDS por ejemplo midb.xxxxxx.us-east-1.rds.amazonaws.com, Port 5432, Maintenance database postgres salvo que uses otra, Username el usuario maestro por ejemplo admin y Password la contraseña maestra. 5 Guarda y prueba la conexión.

Paso 4 Reglas de seguridad en AWS

Si no conecta, revisa en AWS Console RDS Bases de datos tu instancia y la sección Conectividad y seguridad. Verifica el Security Group asociado y edita las reglas de entrada. Añade una regla PostgreSQL 5432 con origen My IP para permitir el acceso desde tu equipo Ubuntu. Puedes conocer tu IP pública con curl ifconfig.me. Si usas VPN o cambias de red, actualiza la regla. En entornos de equipo considera un rango CIDR corporativo y políticas de ciberseguridad.

Paso 5 Prueba desde terminal con psql opcional

Instala el cliente con sudo apt install postgresql-client -y. Conecta con psql -h tu-endpoint-rds -U admin -d postgres e introduce la contraseña cuando se solicite. Si esta prueba funciona, pgAdmin también debería conectar sin problemas.

Con esto, tu Ubuntu y pgAdmin quedan listos para visualizar bases de datos de AWS RDS, ejecutar consultas, gestionar esquemas y optimizar el trabajo de análisis con inteligencia de negocio y power bi, así como integraciones con agentes IA cuando corresponda.

¿Necesitas apoyo experto para desplegar RDS con buenas prácticas, alta disponibilidad, copias de seguridad, cifrado y automatización CI CD en la nube? En Q2BSTUDIO somos especialistas en servicios cloud aws y azure, y podemos ayudarte a diseñar arquitecturas seguras, observables y escalables. Conoce más en servicios cloud en AWS y Azure.

Además, potenciamos tus datos con servicios inteligencia de negocio, dashboards ejecutivos y modelado de datos moderno. Integramos PostgreSQL y RDS con herramientas de reporting y autoservicio como power bi para tomar decisiones basadas en datos. Descubre cómo en inteligencia de negocio y Power BI.

En Q2BSTUDIO desarrollamos aplicaciones a medida y software a medida, incorporamos inteligencia artificial e ia para empresas con agentes IA, reforzamos ciberseguridad con prácticas de hardening y evaluación continua, y llevamos a cabo automatización de procesos en todo el ciclo de vida del dato. Si buscas una consultora que una tecnología y negocio para acelerar resultados, estamos listos para ayudarte.

Resumen rápido de comandos por si lo necesitas de un vistazo

Actualizar e instalar dependencias sudo apt update && sudo apt upgrade -y; sudo apt install curl wget ca-certificates gnupg -y. Clave y repositorio de pgAdmin curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/pgadmin.gpg; echo deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main | sudo tee /etc/apt/sources.list.d/pgadmin4.list; sudo apt update; sudo apt install pgadmin4 -y. Lanzar pgAdmin escritorio pgadmin4. Configurar modo web sudo /usr/pgadmin4/bin/setup-web.sh. Probar conectividad psql sudo apt install postgresql-client -y; psql -h tu-endpoint-rds -U admin -d postgres. Obtener IP pública curl ifconfig.me.

Buenas prácticas adicionales considera activar cifrado en tránsito y en reposo, rotación de contraseñas, grupos de parámetros adecuados, monitoreo con métricas y alertas, y reglas de ciberseguridad alineadas con el principio de mínimo privilegio.

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