最近忙得忘乎所以,写篇博客放松放松,RT,直接上命令好了 # Local ssh-keygen -t rsa scp ~/.ssh/id_rsa.pub username@server:~/.ssh/ vi ~/.ssh/config 加入: Host nickname #别名,域名缩写 HostName XX #完整的域名 User XX #登录该域名使用的账号名 IdentityFile ~/.ssh/id_rsa #私钥文件的路径 # Server cat ~/.ssh/id_rsa.pu
mac安装mysql时会给出一个临时密码 记录下来 2018-03-17T02:14:10.809431Z 1 [Note] A temporary password is generated for root@localhost: tiBVf3f_fC5I If you lose this password, please consult the section How to Reset the Root Password in the MySQL reference manual. 打开终端