amazon-web-services - How to connect to EC2 instance via Jenkins pipeline?
问题描述
I have configured my EC2 instance via 'adding cloud' in Jenkins and the test connection was successful. I have also added the same 'Publish over SSH key' section. But when I try to SSH to the instance via my pipeline, it's showing authentication failed.
I have also tried creating a separate folder and added the key file and created pipeline in that and tried ssh-add -l
to check connectivity. But that is also not connecting.
Could someone tell me how to link or call the added cloud in my Jenkins pipeline? The action I want to perform is connecting to that instance and perhaps performing a touch command to check connectivity through JENKINS PIPELINE.
解决方案
推荐阅读
- wordpress - 有没有办法在用户登录时只显示单个产品的库存
- css - 尝试使用 CSS (flexbox) 垂直对齐文本
- android - Viewpager 适配器在 instantiateItem 处同时加载位置 0 和 1
- spring - Spring boot - 如何使用 2 个身份验证提供程序
- angular - 使用 FilterPredicate 创建自定义过滤器来过滤 DataSource
- puppet - 服务器上的错误 400:找不到节点“master.host.com”;无法编译
- ios - 系统字体在 iOS 13 上呈现为 Times New Roman
- dask - xarray load() 在 open_mfdataset() 数据上运行缓慢
- cmake - 如何在基于 cmake 的 bitbake 配方上导入 LLVM?
- php - 如何用php修改xml文件