本文共 1429 字,大约阅读时间需要 4 分钟。
jike@20161008-173839 MINGW32 ~/.ssh$ cdjike@20161008-173839 MINGW32 ~$ mkdir ~/.sshjike@20161008-173839 MINGW32 ~$ cd .ssh/jike@20161008-173839 MINGW32 ~/.ssh$ ssh-keygen -t rsa -C P''Generating public/private rsa key pair.Enter file in which to save the key (/c/Users/jike/.ssh/id_rsa):Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /c/Users/jike/.ssh/id_rsa.Your public key has been saved in /c/Users/jike/.ssh/id_rsa.pub.The key fingerprint is:SHA256:1oyTPAJX+/Mh077k/Q1tTUqz6nKrwKmgzV6t/MWMm8E PThe key's randomart p_w_picpath is:+---[RSA 2048]----+| . || . . || . . . || o . * . || . S B o o .|| * B * o *.|| . . E + + + +|| + + o *.o.+ o.|| ..+ +.+ .=*...o|+----[SHA256]-----+jike@20161008-173839 MINGW32 ~/.ssh$ lltotal 5-rw-r--r-- 1 jike 197121 1679 十月 14 11:22 id_rsa-rw-r--r-- 1 jike 197121 383 十月 14 11:22 id_rsa.pubjike@20161008-173839 MINGW32 ~/.ssh$ cat id_rsa.pubssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+o+QEO4BMN1YTJg5mLzldgRn62l0Oww8aXRSryBueEO//DSAfRV16M2opyfHo0VKt4KSH0IV3GkhjKUEoCd+kBnryZQrRpPKc/dfcbu2i3LFe33LIw1dp71K3yGNmeU4sO+HYdYNqs+WsjYqkdkCLIKvgiJPeU4tuY54iM+AHZSJruL12nT0YGGbw/KTBjDMSO+M9TZG6ce5wqmJocHRiNuYTP5Fpd9Ec4n3mGtTuphceby1hnQPHlyHvcu3SG3FsZYgqULAgH6XpaXiVwQTW4cBTMZasmSC+ZFS6r0KG6EPS2Xd/vWW1JM6CQNRc7LObssu43azy2OcLTET1RG/f P
转载于:https://blog.51cto.com/990487026/1861876