Nếu không được thêm dòng PubkeyAcceptedAlgorithms +ssh-rsa vào dưới dòng AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
PS C:\Users\admin> ssh-keygen.exe
...
... Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
PS C:\Users\admin> type C:\Users\admin\.ssh\id_rsa.pub | ssh root@10.1.18.13 'cat >> .ssh/authorized_keys'
...
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
...
SSH đến máy chủ
PS C:\Users\admin> ssh root@10.1.18.13
Khai baos Visual Studio Code private key de remote ssh
file config trong thu mục <user_profile>\.ssh
Host 10.1.18.13
HostName 10.1.18.13
User root
IdentityFile ~/.ssh/id_rsa