2021-11-11 04:05:16 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
steps:
|
|
|
|
- name: ssh
|
|
|
|
image: golang:1.17.2
|
2021-11-11 04:09:13 +00:00
|
|
|
environment:
|
|
|
|
KEY:
|
|
|
|
from_secret: key
|
2021-11-11 04:05:16 +00:00
|
|
|
commands:
|
2021-11-11 04:19:39 +00:00
|
|
|
- echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config
|
2021-11-11 04:20:23 +00:00
|
|
|
- mkdir -p ~/.ssh
|
2021-11-11 04:19:39 +00:00
|
|
|
- echo $KEY > ~/.ssh/id_rsa.pub
|
2021-11-11 04:11:12 +00:00
|
|
|
- ssh kumoly@kumoly.io -i /id_rsa.pub -p 2222 ls
|