Cockpit - Linux Web Console

Cockpit - Linux Web Console

So I installed CentOS 8 in VirtualBox today. Why, are you asking? Because that's what I "do for fun". Good thing I don't go on job interviews or first dates anymore, right? Anyway, I installed CentOS 7.6 on an AWS EC2 VM just a couple of weeks ago, so I was surprised to see the following message when I SSH'd into the new version 8 VM from my Ubuntu host:

Activate the web console with: systemctl enable --now cockpit.socket

Web console? cockpit.socket? My interest was piqued! After reading a bit about The Cockpit Project [1] I decided to give it a try. Since the web console opens a socket listener on port 9090, I don't like to have it open for no reason, so rather than Enabling the service I simply started it temporarily, so that I can easily stop it afterwards:

$ sudo systemctl start cockpit.socket

Getting no output from that command, and specifically no error messages, was an indication that it was executed successfully. The next thing to do then was to browse to the server's IP address at port 9090. In this case the address was https://192.168.1.182:9090/ and since it uses a self signed certificate I had to tell the browser that yes, I trust that server, and yes, I know what I'm doing. Sheesh.

Next I was presented with a login screen that looked eerily similar to the OpenShift or OKD login screens, exposing Red Hat's fingerprints on the product:

No alt text provided for this image

Once I logged in with my Linux user account, which has `sudo` privileges, I landed on the System page which displayed basic information about the server and featured some nice graphs:

No alt text provided for this image

Some interesting menu items on the left include the Logs, which allow to easily filter entries by severity:

No alt text provided for this image

Storage and Networking, with some nice graphs and I/O stats:

No alt text provided for this image
No alt text provided for this image

Account and Service management available via the appropriately labeled links:

No alt text provided for this image
No alt text provided for this image

SELinux page with very useful information for when you want to pull your hair out because nothing is working as you expect it to, also with an easy button to toggle Enforcing and Permissive modes:

No alt text provided for this image

Software Updates:

No alt text provided for this image

And my favorite, a Terminal emulator that runs surprisingly well inside your browser:

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

And the cherry on top is that the layout is responsive and you can do it all from your tablet or phone:

It's really cool stuff, but I don't want to open an unnecessary attack vector to hackers so I think I will keep it disabled by default, and turn it on and off as, or if, needed.









[1] https://cockpit-project.org/

Dallas Haselhorst

GSE #231 | CISSP | SANS/GIAC(x10) | TreeTop Security founder | BSidesKC co-organizer | STEM Harvest founder | Entrepreneur | Disruptor

5 年

I haven't tried 8 yet, but now I'm excited to take a peek. Nice write-up!

要查看或添加评论,请登录

Igal S.的更多文章

  • Fraud on LinkedIn! Beware!

    Fraud on LinkedIn! Beware!

    I've been meaning to post this article for some time now. For some reason I am being targeted by scammers, or maybe…

    73 条评论
  • Farewell Windows (it's not you, it's me)

    Farewell Windows (it's not you, it's me)

    Farewell Windows, it's been a great ride but I've outgrown this relationship and it's time for me to move on. People…

    71 条评论
  • Getting Started with Lucee in Docker

    Getting Started with Lucee in Docker

    In this video I show how to get started with Lucee in Docker: I am using the project that I recently published at…

    2 条评论
  • I ?? Lucee

    I ?? Lucee

    Last month I gave a talk titled "I Love Lucee" at the Tomcat track of ApacheCon (link to video below though the preview…

    22 条评论
  • Easily Run Postgres in Docker

    Easily Run Postgres in Docker

    I made a video tutorial with an introduction to running Postgres in Docker. There are plenty of tutorials with lots of…

    12 条评论
  • Gotta love Postgres Procedural Languages

    Gotta love Postgres Procedural Languages

    I recently had to parse some text that was stored in a Postgres database. The text in each record had multiple lines of…

    5 条评论
  • How to use your regular IP when connected to a VPN

    How to use your regular IP when connected to a VPN

    Consulting for different Enterprise and Government organizations means that each of them requires me to connect to…

    11 条评论
  • Gotta Love Postgres Arrays

    Gotta Love Postgres Arrays

    I recently helped a client migrate their database from SQL Server to Postgres. Some of their tables, e.

    8 条评论
  • time.Format(layout) in Go

    time.Format(layout) in Go

    A common task in programming is to format a point in time in a certain layout that is easily understood by humans or…

    12 条评论
  • The More I Write Go - Episode IV

    The More I Write Go - Episode IV

    Go has become a very popular language in recent years. The fact that it came from Google it a big boost.

    2 条评论

社区洞察

其他会员也浏览了