Related article:
https://blog.csdn.net/weixin_33832340/article/details/92241463?utm_medium=distribute.pc_relevant_t0.none-task-blog-searchFromBaidu-1.control&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-searchFromBaidu-1.control
3、创建秘钥对
ssh-keygen -t rsa
然后把 pub公钥文件 通过qq邮箱 传到 工作站上
4、把公钥移至创建账号家目录对应的目录下,公钥和私钥都下载至本地
cat /tmp/xxxx.pub > /home/xxxx/.ssh/authorized_keys 中间若有目录不存在,直接创建就好
~/.ssh/
最后,我没有重启服务就可以登录了。
when I scp my public key to my workstation, it wrongs.
the reason is that the -P should in fronte of all source&target
5. cat文件操作指令集合:
>> 即为追加文件,>为重写 cat id_rsa* >> targetFile
cat -n file 输出file文件中的全部内容,并且对file文件进行从 1 开始的编