Configuring WSL as a ControlMaster relay server: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 13: Line 13:


=== Install additional packages ===
=== Install additional packages ===
<pre>
  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


NOTE: you may login from Windows to Ubuntu with: ssh localhost
</pre>
=== General ideal of the setup ===
=== General ideal of the setup ===
<pre>
<pre>
Line 40: Line 43:
</pre>
</pre>


=== Also customize .ssh/config file ===
=== Customize .ssh/config on ubuntu ===
<pre>
<pre>
jaime@ubuntu:~$ cat .ssh/config
jaime@ubuntu:~$ cat .ssh/config
Line 49: Line 52:
     HostName  cedar.computecanada.ca
     HostName  cedar.computecanada.ca
     User pinto
     User pinto
</pre>
=== Configure your customer authorized_keys ===
<pre>
jaime@ubuntu:~/custom_ssh$ cat /home/jaime/custom_ssh/authorized_keys
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHSRvqzlffkzcjRAaMQoTBrPe5FxlSA6cQ0v3yVzN+A+
NOTE: use the same public ssh key that you uploaded to CCDB
</pre>
=== Now start the sshd server on 'ubuntu' ===
<pre>
jaime@ubuntu:~/custom_ssh$ /usr/sbin/sshd -f ${HOME}/custom_ssh/sshd_config
NOTE: make sure your start the server as yourself, now as root.
</pre>
=== Customize .ssh/config on smart RemoteCommand  ===
<pre>
jaime@smart ~/.ssh cat config
Host ubuntu
        Hostname localhost
        RemoteCommand ssh cedar
jaime@smart ~/.ssh
</pre>
</pre>
cc_staff
290

edits