ubuntu - pm2 密钥在 gitlab-ci 上的权限错误
问题描述
我想从 gitlab-ci runner 运行 pm2,但是在运行 pm2 之后,我有这个消息:
Warning: Permanently added 'xxxxxxx' (ECDSA) to the list of known hosts.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0755 for '/root/.ssh' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/root/.ssh": bad permissions
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
Deploy failed
我尝试设置chmod 600 ~/.ssh
但没有结果。
任何人都可以帮助我吗?
解决方案
推荐阅读
- python - 从Python中的线程中的函数获取返回值
- java - Hibernate:在运行时生成动态实体
- c# - 如何在 c# 中以表单形式添加的 UserControl 上绘制渐变?
- laravel - ModelFactory:错误:在 null 上调用成员函数 connection()
- python - 无法在 python 2 中拆分字符串余数
- visual-studio - 我应该为 OS Windows10 和 Visual Studio 13 安装哪个 Windows 驱动程序套件?
- xcode - 从 V9 降级到 V8 后,xcode 无法打开
- git - 带有配置“recurse=true”的 git pull 不会更新所有子模块
- java - PhpStorm 中的数据库连接导致 java.rmi.ConnectException: Connection denied to host: 127.0.0.1
- javascript - 轮播多项目:项目未对齐