Configuring WSL as a ControlMaster relay server: Difference between revisions

Jump to navigation Jump to search
no edit summary
mNo edit summary
No edit summary
Line 1: Line 1:
Disclaimer: This is still an experimental procedure (work in progress). Your feedback is welcome.
Disclaimer: This is still an experimental procedure (work in progress). Your feedback is welcome.


With this procedure you can leverage ControlMaster under WSL so you may login to the clusters with several apps under native Windows for a certain period without having to do MFA for every session.  
With this procedure you can leverage ControlMaster under WSL so you may log into the clusters with several apps under native Windows for a certain period without having to do MFA for every session.  


=== How to install Linux on Windows with WSL ===
=== How to install Linux on Windows with WSL ===
Line 8: Line 8:


This setup assumes the following on the sample config files:
This setup assumes the following on the sample config files:
* you selected Ubuntu as your distro of choice
* you selected Ubuntu as your distribution
* the hostname for the WSL instance is 'ubuntu'. Edit /etc/hostname (ubuntu) and /etc/hosts (127.0.0.1 localhost ubuntu)
* the hostname for the WSL instance is <i>ubuntu</i>. Edit <i>/etc/hostname</i> (ubuntu) and <i>/etc/hosts</i> (127.0.0.1 localhost ubuntu)
* the Windows system is named 'smart' and my login name is 'jaime'
* the Windows system is named <i>smart</i> and the login name is <i>jaime</i>
* the user name on the ubuntu VM is also 'jaime'
* the user name on the Ubuntu VM is also <i>jaime</i>
* the Alliance user name is 'pinto' and I want to connect to 'cedar'
* the Alliance user name is <i>pinto</i> and I want to connect to Cedar


=== Install additional packages ===
=== Install additional packages ===
Line 19: Line 19:
  sudo apt install openssh-server -y
  sudo apt install openssh-server -y


NOTE: you may login from Windows to Ubuntu with: ssh localhost
NOTE: you may log in from Windows to Ubuntu with <code>ssh localhost</code>.
</pre>
</pre>
=== General idea of the setup ===
=== General idea of the setup ===
Line 26: Line 26:
your Windows    modified authorized_keys    using cedar for
your Windows    modified authorized_keys    using cedar for
   machine          in your Ubuntu VM          this exercise
   machine          in your Ubuntu VM          this exercise
  'smart'              'ubuntu'                  'cedar'
<i>smart</i>        <i>ubuntu</i>                Cedar
</pre>
</pre>


rsnt_translations
56,420

edits

Navigation menu