添加ssh密钥
直接运行ssh-keygen,可以不输入密码
$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa): /c/Users/Administrator/.ssh/id_rsa already exists. Overwrite (y/n)? y 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:OIS9QLytpU09WUT0sMCcMs70JozqWjj1ivcEmadjjKk Administrator@205-33 The key's randomart image is: +---[RSA 2048]----+ | .. o.== | | ..o+ +..+ | | oOo= o. . | | oooOo* | | =..*+oS. | | *.=o .. | |=.* o | |.=o+ | |Eo... | +----[SHA256]-----+
而后在如下路径/c/Users/Administrator/.ssh会有id_rsa.pub文件,将其中的内容复制添加到如下位置,则可。
1
2
3