- Generate private key
openssl genrsa -out privatekey.pem 1024
Generating RSA private key, 1024 bit long modulus (2 primes)
......................+++++
....................+++++
e is 65537 (0x010001)
openssl genrsa -out privatekey.pem 1024
Generating RSA private key, 1024 bit long modulus (2 primes)
......................+++++
....................+++++
e is 65537 (0x010001)
Side note: The latest edge build of KeeAgent plugin offers an option for creating a WSL compatible socket. This would be very handy. I already tried to use that socket, but the socket file is currently empty and ssh
inside WSL 2 is unable to use it. This appears to be a very new, unreleased and unstable feature. I will follow the development of it and when it finally works (well, for me) I will update this HOWTO. But until then, please use the proven wsl-ssh-agent
/npiperelay.exe
approach below.
Thanks to the instructions for WSL 2 of the wsl-ssh-agent
project, KeeAgent works great in WSL 2 now:
https://github.com/rupor-github/wsl-ssh-agent#wsl-2-compatibility
The approach uses minimal and well maintained tools.
npiperelay.exe
not onto the devfs
filesystem but rather Windows filesystem (thanks @NOBUTOKA) which fixes strange delays when using the SSH kEnsure hypervisor functionality is enabled in BIOS.
Launch a PowerShell prompt in Administrator mode [Win+X > Windows PowerShell (Admin)]
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
#1 - Update your system with the latest version:
apt-get update -y && apt-get upgrade -y
. Use sudo if needed.
#2 - Check if virtualization is supported on Linux:
grep -E --color ‘vmx|svm’ /proc/cpuinfo
#3 - Install required packages (optional):
apt-get install curl wget apt-transport-https -y
#1 - Update your system with the latest version:
apt-get update -y && apt-get upgrade -y
. Use sudo if needed.
#2 - Check if virtualization is supported on Linux:
grep -E --color ‘vmx|svm’ /proc/cpuinfo
#3 - Install required packages (optional):
apt-get install curl wget apt-transport-https -y
update the newly created instance
sudo apt update -y
Install rtpengine dependecies
sudo apt-get install debhelper iptables-dev libcurl4-openssl-dev
libpcre3-dev libxmlrpc-core-c3-dev markdown libavfilter-dev
libavformat-dev libavresample-dev libevent-dev libglib2.0-dev libhiredis-dev
libjson-glib-dev libpcap0.8-dev libpcap-dev libssl-dev dkms module-assistant