1. Create key

ssh-keygen -t rsa -b 4096 -f %USERPROFILE%/.ssh/id_rsa

2. copy public key to remote server

scp %USERPROFILE%/.ssh/id_rsa.pub user@ssh.richyan.com:~/key.pub

3. on Server

cat ~/key.pub >> ~/.ssh/authorized_keys
rm ~/key.pub\
chmod 600 ~/.ssh/authorized_keys

4. Try connect to server

ssh -i %USERPROFILE%/.ssh/id_rsa richyan.com@ssh.richyan.com
exit

5. Edit ssh config on code-insiders

IdentityFile: C:/Users/[username]/.ssh/id_rsa