Language Selection

English French German Italian Portuguese Spanish

Executing commands upon remote machines via secure email

Filed under
HowTos

I recently came across the grunt package which is designed to allow you to execute commands remotely, via the delivery of GPG-signed email. Since documentation is scant this introductory article was born.

Once installed there are three commands that can be used:

gruntsend
This allows you to send a list of commands to your mail server, where they will be executed. You'll be prompted to sign your mail, and this will then be sent.

gruntrecieve
This is the part of the program which reads in the encrypted command(s), verifies the signature and if they are valid executes them.

gruntrun
This command simply executes a simple command upon the remote host - without you needing to write it to a temporary file and cause it to be uploaded as you would with gruntsend.

To be clear about how the process works we'll show it running upon two machines:

Full Story.

More in Tux Machines

Exploring Alpine Linux 3.2.0

Alpine Linux has become one of the most frequently requested distributions on my list of projects to review. Alpine is an independent distribution which, as the project's front page tells us, is "a security-oriented, lightweight Linux distribution based on musl libc and busybox." The project's About page goes into more detail: "Alpine Linux is a very simple distribution that will try to stay out of your way. It uses its own package manager, called apk, the OpenRC init system, script driven set-ups and that's it! This provides you with a simple, crystal-clear Linux environment without all the noise. You can then add on top of that just the packages you need for your project, so whether it's building a home PVR, or an iSCSI storage controller, a wafer-thin mail server container, or a rock-solid embedded switch, nothing else will get in the way." Read more

How I Discovered Linux & Changed the World

When Rick migrated us over to Linux, I had no idea what Linux was or why it would be any better than the Windows systems we had been using. I had seriously considered changing the whole operation to Macs, until the sticker shock set in. The fact that Rick assured me the hack would have not occurred on Linux was surely one of the reasons I went along. With some online guidance from Rick, I installed Linux on my personal/work computer at home under a dual boot. Prior to that, I had been looking at a lot of screen shots of Linux systems. A lot of them. Read more

Linux on the desktop is so hot there's now a fight over it

Citrix has made good on its April promise to deliver virtual Linux desktops, today announcing it's ready to roll out penguin-powered pretend PCs. The company snuck the penguin-powered desktops into Feature Pack 2 for XenApp and XenDesktop 7.6. For now, Citrix says says you can choose from Red Hat Enterprise Linux 6.6 Workstation and Server, or SUSE Linux Enterprise Desktop and Server 11 Service Pack 3, the two distros the company says its customers have asked for the most. Read more Also: Citrix: Linux Virtual Desktop released with XenApp and XenDesktop 7.6 FP2

Containers

  • Containers change the game
    The industry is excited about containers in application development, and it will yield significant value in the application-centric cloud
  • IBM Rolls Out Docker-Based Container Services
    IBM has introduced enterprise-class containers to make it easier for clients to deliver production applications across their hybrid environments.