Configuring WSL as a ControlMaster relay server: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Marked this version for translation)
No edit summary
Line 27: Line 27:
  sudo apt update && sudo apt upgrade -y
  sudo apt update && sudo apt upgrade -y
  sudo apt install openssh-server -y
  sudo apt install openssh-server -y
</pre>
You may log in from Windows to Ubuntu with <code>ssh localhost</code>.


NOTE: You may log in from Windows to Ubuntu with <code>ssh localhost</code>.
</pre>
=== General idea of the setup === <!--T:5-->
=== General idea of the setup === <!--T:5-->
<pre>
<pre>
Line 50: Line 50:
PidFile /home/jaime/custom_ssh/sshd.pid
PidFile /home/jaime/custom_ssh/sshd.pid
</pre>
</pre>
NOTE: You may copy the ''ssh_host'' keys from ''/etc/ssh'' with:
You may copy the ''ssh_host'' keys from ''/etc/ssh'' with:
<pre>sudo cp /etc/ssh/ssh_host_ed25519_key /home/jaime/custom_ssh/</pre>
<pre>sudo cp /etc/ssh/ssh_host_ed25519_key /home/jaime/custom_ssh/</pre>


Line 71: Line 71:


<!--T:9-->
<!--T:9-->
NOTE: Use the same public SSH key that you uploaded to CCDB.
Use the same public SSH key that you uploaded to CCDB.


=== Now start the sshd server on Ubuntu === <!--T:10-->
=== Now start the sshd server on Ubuntu === <!--T:10-->
Line 79: Line 79:


<!--T:11-->
<!--T:11-->
NOTE: Make sure you start the server as yourself, not as root.
Make sure you start the server as yourself, not as root.
You will also need to start the sshd server every time you restart your computer, or after closing or restarting WSL.
You will also need to start the sshd server every time you restart your computer, or after closing or restarting WSL.


rsnt_translations
56,420

edits

Navigation menu