Hi! A simple website where I put down some thoughts, code-related cheat sheets, book reviews, and concepts from physics and data science so that I don’t forget :)
How to ssh over WiFi between two machines running wsl
We first follow a tutorial by Scott Hanselman where we will use Windows’ openSSH to handle ssh connections and set the default ssh shell to be bash on wsl.
Setup ssh on your machine Choose one of your two machines to be the host. On the host, we need to first check if OpenSSH.Server is installed. Open powershell with elevated rights and run the following
> Get-WindowsCapability -Online | ? Name -like ‘OpenSSH*’ Name : OpenSSH.
elements
Table of contents Table of contents Text Code Python C/C++ Bash Tables Text Some example text
Code Python def foo(): print ("This is a python function") C/C++ void foo(){ prinf("%s\n", "This is a C function") } Bash # This is a bash command cd dir && echo $PWD; # Return exit 0; Tables Pages Elements 1 Text 2 Code 3 Tables