A Simple Guide to Installing SSHPass on Ubuntu and macOS

Introduction#

SSHPass is a nifty little tool that lets you automate SSH login by bypassing the usual password prompt. While it’s super convenient for scripting, bear in mind that it’s not ideal for a multi-user setup due to security concerns. However, if you’re using it on your personal development machine, it’s pretty harmless.

How to Install SSHPass on Ubuntu#

Installing SSHPass on Ubuntu is as straightforward as it gets. All you need to do is open up your terminal and run the following command:

A Simple Guide to Installing Docker CE on Ubuntu

What You Need Before You Begin#

Operating System Requirements#

First things first, make sure you’re running one of the following 64-bit Ubuntu versions to install Docker CE:

  • Ubuntu 18.04 (Bionic) - LTS
  • Ubuntu 17.10 (Artful)
  • Ubuntu 16.04 (Xenial) - LTS
  • Ubuntu 14.04 (Trusty) - LTS

Docker CE is compatible with these architectures: x86_64, armhf, s390x (IBM Z), and ppc64le (IBM Power).

Note: For IBM Z and Power architectures, you’ll need at least Ubuntu 16.04 (Xenial) or higher.

A Beginner's Guide to Perl Expect Bindings - A Simple Walkthrough

Basic Perl “Hello World” Script (hello.pl)#

Let’s start with the basics. Here is a straightforward “Hello World” script written in Perl. Create a new file and name it hello.pl.

#!/usr/bin/perl
use strict;
use warnings;
use diagnostics;

print "-----------\n",
      "Hello World\n",
      "-----------\n";

In this script, we’re using Perl’s built-in modules for error handling (use strict; use warnings; use diagnostics;) to make sure the code is robust.

Introducing Expect Bindings with Perl (test.pl)#

Now, let’s dive into the main topic: how to use Expect bindings in a Perl script. Create another file, test.pl, and add the following code: