最近忙得忘乎所以,写篇博客放松放松,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…
You can ssh directly from the Terminal on Mac, but you need to use a .PEM key rather than the putty .PPK key. You can use PuttyGen on Windows to convert from .PEM to .PPK, I'm not sure about the other way around though. You can also convert the key u…