shlogg · Early preview
Paweł Bbkr Pabian @bbkr

Creating A Secure SSH Tunnel To Access Inaccessible Service Hosts

Creating a secure SSH tunnel to access an inaccessible service host using Raku programming language.

Reminder

In this series I demonstrate how to create on demand SSH tunnel to connect to service in another network directly inside your code. I will be referring to theory described in the previous post, so please make sure you read it first.

  
  
  Preparation

We will be using SSH::LibSSH module that connects to system libssh C library through built-in NativeCall mechanism. Install Raku module by invoking zef install SSH::LibSSH. As for libssh it is very likely you have it already installed if you use any major Linux distribution.

  
  
  Boilerplate

Let's start by including required mod...