rsnt_translations
56,420
edits
(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>. | |||
=== 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> | ||
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--> | ||
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--> | ||
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. | ||