How to configure a passphrase-less ssh setup for wsl — windows subsystem for linux —basing on keychain, credentials manager, task scheduler and a bunch of scripts.

Requirements

This is the list of the requirements:

The scripts

keychain.ps1

$credentials = Get-StoredCredential -Target sshpassphrase                       $BSTR = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($credentials.Password)$passphrase = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)                       C:\Windows\System32\wsl.exe -u [YOUR_WSL_USERNAME] -d [YOUR_DISTRIBUTION] /home/[YOUR_WSL_USERNAME]/wslu/keychain.sh $passphrase

keychain.sh

#!/bin/bash
SSH_ASKPASS_SCRIPT=/tmp/ssh-askpass-script
cat > ${SSH_ASKPASS_SCRIPT} <<EOL
#!/bin/bash
echo "$1"
EOL
chmod u+x ${SSH_ASKPASS_SCRIPT}
export DISPLAY="0"
export SSH_ASKPASS=${SSH_ASKPASS_SCRIPT}
/usr/bin/keychain --clear id_rsa
rm ${SSH_ASKPASS_SCRIPT}

The scripts are hosted on public gist. There are two of them a poweshell script called keychain.ps1 …


Image for post
Image for post

Introduction

I am very happy to have had the opportunity to work in the Agile world for almost 4 years, that have been fantastic and challenging.

Being a Scrum master is an invaluable experience and makes you understand and reflect a lot about company processes and software development in general.

It is very hard to discover and address disfunctionalities in teams’ processes. In fact, disfunctionalities are often sneaky. Metrics and surveys can help you but you need to develop an insight to recognize them and this helps you improve a lot as person and professional.

I decided to share with you three thoughts I noted down in these years. …


The objective of the following blog post is to diffuse the results of a small experiment I ran. The basic idea was to see if using a cluster algorithm as k-means was possible to separate the context of use of the visitors of an e-commerce website (e.g. direct search, exploratory search, etc.).

I collected a set of custom clickstreams data from www.prezzifarmaco.it and I analyzed them as follow:

  • eliminated outliers;


I have been reading a lot about lean user experience recently, particularly I read two title published by O’Reilly for “the lean series” collection:

· UX for Lean Startups by Laura Klein;

· Lean UX by Jeff Gothelf and Josh Seiden.

The presented idea of “lean UX” is very coherent across the books and it presents many and significant differences from the traditional world of user experience research and design. One first change is, according to the authors, that lean UX practice is mainly focused on the startup world and, particularly, to non-UX professionals (e.g. …

About

Giuseppe Sorrentino

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store