linux deploy连接ssh失败,ubuntu – Jenkins发布ssh成功连接服务器但是put文件失败

我有一个问题,当我构建我的工作时,它无法将我的文件放在控制台输出的服务器目录中我得到消息“错误:发布时异常,异常消息[权限被拒绝]”

我有以下日志输出:

SSH: Connecting from host [rp_ci]

SSH: Connecting with configuration [web-dev] ...

SSH: Creating session: username [ubuntu], hostname [xx.xx.xx.xxx], port [22]

SSH: Connecting session ...

SSH: Connected

SSH: Opening SFTP channel ...

SSH: SFTP channel open

SSH: Connecting SFTP channel ...

SSH: Connected

SSH: Remote root is not absolute, getting absolute directory from PWD

SSH: cd [/home/ubuntu]

SSH: OK

SSH: cd [deploy/]

SSH: OK

SSH: put [dev-xx-xx.tgz]

SSH: Disconnecting configuration [web-dev] ...

ERROR: Exception when publishing, exception message [Permission denied]

Build step 'Send build artifacts over SSH' changed build result to UNSTABLE

Finished: UNSTABLE

对于目标服务器我使用nginx在AWS EC2上使用ubuntu服务器.

有人知道如何解决这个问题吗?我没有在网上找到任何线索.

谢谢!

放入dev-xx-xx.tgz时权限被拒绝.所以检查文件的权限设置:/home/Ubuntu/deploy/dev-xx-xx.tgz

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值