Created
May 2, 2021 09:22
-
-
Save TuvianNavy/d5ba1493b1148c5cecc0f40aff1c72e9 to your computer and use it in GitHub Desktop.
public-bionic-wsl1-teraterm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ubuntu@WIN10:~$ sudo ssh-keygen -t rsa -b 4096 -P "" -f /etc/ssh/ssh_host_rsa_key | |
| ubuntu@WIN10:~$ sudo ssh-keygen -t ecdsa -b 521 -P "" -f /etc/ssh/ssh_host_ecdsa_key | |
| ubuntu@WIN10:~$ sudo ssh-keygen -t ed25519 -P "" -f /etc/ssh/ssh_host_ed25519_key | |
| ubuntu@WIN10:~$ sudo service ssh start | |
| [sudo] password for ubuntu: | |
| (Windows firewall dialog appears. Permit it.) | |
| * Starting OpenBSD Secure Shell server sshd [ OK ] | |
| ubuntu@WIN10:~$ ssh-keygen -t ed25519 -P "" | |
| ubuntu@WIN10:~$ cat .ssh/id_ed25519.pub >> .ssh/authorized_keys | |
| for teraterm, open C:\Program Files (x86)\teraterm\TERATERM.INI and tweak as shown below: | |
| [TTSSH] | |
| DefaultRSAPrivateKeyFile=C:\Users\YourWindowsHome\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs\home\YourUbuntuHome\.ssh\id_ed25519 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment