今天在使用 ssh key 登录服务器的时候报错了,提示:Permissions 0644 for xxxxxx are too open

经过晚上一番搜索,原来是 ssh key 的读写权限过于开放,过多的用户可以读取,可能导致安全问题,因此需要改一下 ssh key 的读写权限:

chmod 400 path/to/key

后续安装 nvm 过程中,我还遇到了 The unauthenticated git protocol on port 9418 is no longer supported 的问题,解决方式是使用 http(s) 地址来 clone 仓库,而不是用 ssh。