Generating public/private rsa key pair.
Enter fileinwhich to save the key (C:\Users\Administrator/.ssh/id_rsa):
Created directory 'C:\Users\Administrator/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in C:\Users\Administrator/.ssh/id_rsa.
Your public key has been saved in C:\Users\Administrator/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:jRpxlfLnCHEhy+iBxXrBrCnA9VOHfdGMeUD1lObI4dk administrator@DESKTOP-T4LH55L
The key's randomart image is:
+---[RSA 2048]----+
|... +..+.+*O. ..||.. .o*++=o+ =oo ||. .*+.+=. + B. ||. +.o+.o. .= E ||. .o S..+ || o ..||.|||||
+----[SHA256]-----+
The authenticity of host'12.7.10.8 (12.7.10.8)' can't be established.
ECDSA key fingerprint is SHA256:QpdPVkq6NVIHIMOib5IIJ0rm726pfhuReBk8DjyLbO4.
Are you sure you want to continue connecting (yes/no)?
Warning: Permanently added '12.7.10.8' (ECDSA) to the list of known hosts.
root@12.7.10.8's password:
id_rsa.pub 100% 4120.4KB/s 00:00
3、测试直接登陆到linux
PS C:\Windows\system32>ssh root@12.7.10.8
Last login: Tue Dec 19 00:44:55 2023 from 6.2.6.1
Welcome to Huawei Cloud Service
test :: ~ »