首先注册一个Ubuntu账号,还需要SSH密钥,打开终端输入ssh-keygen
生成SSH密钥,输入你的邮箱
和两次密码
,会在C:\Users\xxx
生成一个文件,文件名为“你的邮箱.pub
”,使用记事本打开并复制其中内容,粘贴在 这里,最后点击导入SSH密钥
即可。
C:\Users\xxx>ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (C:\Users\xxx/.ssh/id_rsa): xxx@xxx.com #输入你的邮箱 Enter passphrase (empty for no passphrase): #输入你的密码 Enter same passphrase again: #输入你的密码 Your identification has been saved in xxx@xxx.com. Your public key has been saved in xxx@xxx.com.pub. The key fingerprint is: SHA256:OT0kDxDIYQxtcb+j2hWiwspfm7HzTKxHxfu4eh2g2vg xxx@---- The key's randomart image is: +---[RSA 3072]----+ | .=+++. | | .*. o | | . = . | | % | | . S * | | . ..= = o | | o .o*o. + . | |.. ..*O+ o o | |.....=*Eo.. | +----[SHA256]-----+