Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
appleboy | 0d16b0bcd8 | |
appleboy | 2988f59e6a | |
appleboy | da1f1537f1 |
|
@ -1,43 +0,0 @@
|
||||||
---
|
|
||||||
name: Bug report
|
|
||||||
about: Create a report to help us improve
|
|
||||||
title: ''
|
|
||||||
labels: bug
|
|
||||||
assignees: appleboy
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Describe the bug
|
|
||||||
|
|
||||||
A clear and concise description of what the bug is. If applicable, add screenshots to help explain your problem.
|
|
||||||
|
|
||||||
## Yaml Config
|
|
||||||
|
|
||||||
Please post your Yaml configuration file along with the output results.
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
name: remote ssh command
|
|
||||||
on: [push]
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
build:
|
|
||||||
name: Build
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: executing remote ssh commands using password
|
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
|
||||||
with:
|
|
||||||
host: ${{ secrets.HOST }}
|
|
||||||
username: ${{ secrets.USERNAME }}
|
|
||||||
password: ${{ secrets.PASSWORD }}
|
|
||||||
port: ${{ secrets.PORT }}
|
|
||||||
script: whoami
|
|
||||||
```
|
|
||||||
|
|
||||||
## Related environment
|
|
||||||
|
|
||||||
Please provide the following information:
|
|
||||||
|
|
||||||
1. Your hosting provider information, such as DigitalOcean, Linode, AWS, or GCP.
|
|
||||||
2. The version information of your host's SSH service.
|
|
||||||
3. The information from your host's SSH configuration file.
|
|
|
@ -0,0 +1,312 @@
|
||||||
|
name: remote ssh command
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
env:
|
||||||
|
FOO: "BAR"
|
||||||
|
BAR: "FOO"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
testing01:
|
||||||
|
name: default flag testing
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: correct password but wrong key
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
password: ${{ secrets.PASSWORD }}
|
||||||
|
key: "1234"
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
script: whoami
|
||||||
|
|
||||||
|
- name: wrong password but correct key
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
password: "abcdef"
|
||||||
|
key: ${{ secrets.KEY }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
script: whoami
|
||||||
|
|
||||||
|
- name: executing remote ssh commands using password
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
password: ${{ secrets.PASSWORD }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
script: whoami
|
||||||
|
|
||||||
|
- name: executing remote ssh commands using ssh key
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
key: ${{ secrets.KEY }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
script: whoami
|
||||||
|
|
||||||
|
- name: multiple command
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
key: ${{ secrets.KEY }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
script: |
|
||||||
|
whoami
|
||||||
|
ls -al
|
||||||
|
|
||||||
|
- name: stop script if command error
|
||||||
|
uses: ./
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
key: ${{ secrets.KEY }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
script_stop: true
|
||||||
|
sync: true
|
||||||
|
debug: true
|
||||||
|
script: |
|
||||||
|
mkdir abc/def
|
||||||
|
ls -al
|
||||||
|
|
||||||
|
- name: ssh key passphrase
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
key: ${{ secrets.SSH2 }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
passphrase: ${{ secrets.PASSPHRASE }}
|
||||||
|
script: |
|
||||||
|
whoami
|
||||||
|
ls -al
|
||||||
|
|
||||||
|
- name: use insecure cipher
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
password: ${{ secrets.PASSWORD }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
script: |
|
||||||
|
ls \
|
||||||
|
-lah
|
||||||
|
use_insecure_cipher: true
|
||||||
|
|
||||||
|
# https://github.com/appleboy/ssh-action/issues/75#issuecomment-668314271
|
||||||
|
- name: Multiline SSH commands interpreted as single lines
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
password: ${{ secrets.PASSWORD }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
script_stop: true
|
||||||
|
script: |
|
||||||
|
ls \
|
||||||
|
-lah
|
||||||
|
use_insecure_cipher: true
|
||||||
|
|
||||||
|
# https://github.com/appleboy/ssh-action/issues/85
|
||||||
|
- name: Deployment to multiple hosts with different ports
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
host: "${{ secrets.HOST }}:${{ secrets.PORT }}"
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
password: ${{ secrets.PASSWORD }}
|
||||||
|
port: 1024
|
||||||
|
script_stop: true
|
||||||
|
script: |
|
||||||
|
ls \
|
||||||
|
-lah
|
||||||
|
use_insecure_cipher: true
|
||||||
|
|
||||||
|
# - name: SSH ED25519 Private Key
|
||||||
|
# uses: ./
|
||||||
|
# with:
|
||||||
|
# host: ${{ secrets.TUNNEL_HOST }}
|
||||||
|
# username: ${{ secrets.TUNNEL_USERNAME }}
|
||||||
|
# key: ${{ secrets.ID_ED25519 }}
|
||||||
|
# port: ${{ secrets.TUNNEL_PORT }}
|
||||||
|
# script: whoami
|
||||||
|
|
||||||
|
testing02:
|
||||||
|
name: testing with envs
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: pass environment
|
||||||
|
uses: ./
|
||||||
|
env:
|
||||||
|
FOO: "BAR"
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
key: ${{ secrets.KEY }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
envs: FOO
|
||||||
|
script: |
|
||||||
|
echo "I am $FOO, thanks"
|
||||||
|
echo "I am $BAR, thanks"
|
||||||
|
|
||||||
|
- name: pass multiple environment
|
||||||
|
uses: ./
|
||||||
|
env:
|
||||||
|
FOO: "BAR"
|
||||||
|
BAR: "FOO"
|
||||||
|
SHA: ${{ github.sha }}
|
||||||
|
PORT: ${{ secrets.PORT }}
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
key: ${{ secrets.KEY }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
envs: FOO,BAR,SHA,PORT
|
||||||
|
script: |
|
||||||
|
echo "I am $FOO, thanks"
|
||||||
|
echo "I am $BAR, thanks"
|
||||||
|
echo "sha: $SHA"
|
||||||
|
echo "port: $PORT"
|
||||||
|
sh test.sh
|
||||||
|
|
||||||
|
- name: custom envs format
|
||||||
|
uses: ./
|
||||||
|
env:
|
||||||
|
FOO: "BAR"
|
||||||
|
AAA: "BBB"
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
key: ${{ secrets.KEY }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
envs: FOO,BAR,AAA
|
||||||
|
envs_format: export TEST_{NAME}={VALUE}
|
||||||
|
script: |
|
||||||
|
echo "I am $TEST_FOO, thanks"
|
||||||
|
echo "I am $TEST_BAR, thanks"
|
||||||
|
echo "I am $BAR, thanks"
|
||||||
|
echo "I am $TEST_AAA, thanks"
|
||||||
|
|
||||||
|
- name: pass all ENV variables to script
|
||||||
|
uses: ./
|
||||||
|
env:
|
||||||
|
INPUT_FOO: "BAR"
|
||||||
|
INPUT_AAA: "BBB"
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
key: ${{ secrets.KEY }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
allenvs: true
|
||||||
|
script: |
|
||||||
|
echo "I am $INPUT_FOO, thanks"
|
||||||
|
echo "I am $INPUT_AAA, thanks"
|
||||||
|
echo "$GITHUB_BASE_REF"
|
||||||
|
echo "$GITHUB_REF"
|
||||||
|
|
||||||
|
testing03:
|
||||||
|
name: git clone and pull
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: clone private repository
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
key: ${{ secrets.KEY }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
script_stop: true
|
||||||
|
script: |
|
||||||
|
git clone https://appleboy:${{ secrets.TEST_TOKEN }}@github.com/go-training/self-runner.git test_repository
|
||||||
|
rm -rf test_repository
|
||||||
|
|
||||||
|
testing04:
|
||||||
|
name: docker login and pull
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: login GitHub Container Registry
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
key: ${{ secrets.KEY }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
script_stop: true
|
||||||
|
script: |
|
||||||
|
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u github.actor --password-stdin
|
||||||
|
|
||||||
|
- name: login DockerHub Container Registry
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
key: ${{ secrets.KEY }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
script_stop: true
|
||||||
|
script: |
|
||||||
|
echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
|
||||||
|
|
||||||
|
testing05:
|
||||||
|
name: switch user
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: switch to root user
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
key: ${{ secrets.KEY }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
script_stop: true
|
||||||
|
request_pty: true
|
||||||
|
command_timeout: 30s
|
||||||
|
script: |
|
||||||
|
whoami && echo 'hello world' && touch todo.txt
|
||||||
|
sudo whoami
|
||||||
|
|
||||||
|
testing06:
|
||||||
|
name: testing ipv6
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Set up WARP
|
||||||
|
uses: fscarmen/warp-on-actions@v1.1
|
||||||
|
with:
|
||||||
|
stack: dual
|
||||||
|
|
||||||
|
- name: testing ipv6 for command
|
||||||
|
run: |
|
||||||
|
curl -m 9 --ipv6 --verbose https://google.com
|
||||||
|
|
||||||
|
- name: testing ipv6
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
host: 2402:1f00:8000:800::2628
|
||||||
|
username: ubuntu
|
||||||
|
password: ${{ secrets.OVH_PASSWORD }}
|
||||||
|
protocol: tcp6
|
||||||
|
port: 22
|
||||||
|
command_timeout: 30s
|
||||||
|
script: |
|
||||||
|
whoami
|
|
@ -1,513 +0,0 @@
|
||||||
name: testing main branch
|
|
||||||
|
|
||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
default-user-name-password:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: create new ssh server
|
|
||||||
run: |
|
|
||||||
docker run -d \
|
|
||||||
--name=openssh-server \
|
|
||||||
--hostname=openssh-server \
|
|
||||||
-p 2222:2222 \
|
|
||||||
-e SUDO_ACCESS=false \
|
|
||||||
-e PASSWORD_ACCESS=true \
|
|
||||||
-e USER_PASSWORD=password \
|
|
||||||
-e USER_NAME=linuxserver.io \
|
|
||||||
--restart unless-stopped \
|
|
||||||
lscr.io/linuxserver/openssh-server:latest
|
|
||||||
docker exec openssh-server sh -c "hostname -i" > ip.txt
|
|
||||||
echo "REMOTE_HOST<<EOF" >> $GITHUB_ENV
|
|
||||||
cat ip.txt >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= container ip address ========="
|
|
||||||
cat ip.txt
|
|
||||||
echo "======================================"
|
|
||||||
sleep 2
|
|
||||||
|
|
||||||
- name: ssh by username and password
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
password: password
|
|
||||||
port: 2222
|
|
||||||
script: whoami
|
|
||||||
|
|
||||||
check-ssh-key:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: add public key to env
|
|
||||||
run: |
|
|
||||||
echo "PUBLIC_KEY<<EOF" >> $GITHUB_ENV
|
|
||||||
cat testdata/.ssh/id_rsa.pub >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= public key ========="
|
|
||||||
cat testdata/.ssh/id_rsa.pub
|
|
||||||
echo "============================"
|
|
||||||
echo "PRIVATE_KEY<<EOF" >> $GITHUB_ENV
|
|
||||||
cat testdata/.ssh/id_rsa >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= private key ========="
|
|
||||||
cat testdata/.ssh/id_rsa
|
|
||||||
echo "============================"
|
|
||||||
|
|
||||||
- name: create new ssh server
|
|
||||||
run: |
|
|
||||||
docker run -d \
|
|
||||||
--name=openssh-server \
|
|
||||||
--hostname=openssh-server \
|
|
||||||
-p 2222:2222 \
|
|
||||||
-e PUBLIC_KEY="${{ env.PUBLIC_KEY }}" \
|
|
||||||
-e SUDO_ACCESS=false \
|
|
||||||
-e PASSWORD_ACCESS=true \
|
|
||||||
-e USER_PASSWORD=password \
|
|
||||||
-e USER_NAME=linuxserver.io \
|
|
||||||
--restart unless-stopped \
|
|
||||||
lscr.io/linuxserver/openssh-server:latest
|
|
||||||
docker exec openssh-server sh -c "hostname -i" > ip.txt
|
|
||||||
echo "REMOTE_HOST<<EOF" >> $GITHUB_ENV
|
|
||||||
cat ip.txt >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= container ip address ========="
|
|
||||||
cat ip.txt
|
|
||||||
echo "======================================"
|
|
||||||
sleep 2
|
|
||||||
|
|
||||||
- name: ssh by private key
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
script: whoami
|
|
||||||
|
|
||||||
- name: wrong password but correct key
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
password: "abcdef"
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
script: whoami
|
|
||||||
|
|
||||||
- name: correct password but wrong key
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
password: password
|
|
||||||
key: password
|
|
||||||
port: 2222
|
|
||||||
script: whoami
|
|
||||||
|
|
||||||
- name: stop script if command error
|
|
||||||
uses: ./
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
password: password
|
|
||||||
key: password
|
|
||||||
port: 2222
|
|
||||||
script_stop: true
|
|
||||||
sync: true
|
|
||||||
debug: true
|
|
||||||
script: |
|
|
||||||
mkdir abc/def
|
|
||||||
ls -al
|
|
||||||
|
|
||||||
support-key-passphrase:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: add public key to env
|
|
||||||
run: |
|
|
||||||
echo "PUBLIC_KEY<<EOF" >> $GITHUB_ENV
|
|
||||||
cat testdata/.ssh/id_passphrase.pub >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= public key ========="
|
|
||||||
cat testdata/.ssh/id_passphrase.pub
|
|
||||||
echo "============================"
|
|
||||||
echo "PRIVATE_KEY<<EOF" >> $GITHUB_ENV
|
|
||||||
cat testdata/.ssh/id_passphrase >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= private key ========="
|
|
||||||
cat testdata/.ssh/id_passphrase
|
|
||||||
echo "============================"
|
|
||||||
|
|
||||||
- name: create new ssh server
|
|
||||||
run: |
|
|
||||||
docker run -d \
|
|
||||||
--name=openssh-server \
|
|
||||||
--hostname=openssh-server \
|
|
||||||
-p 2222:2222 \
|
|
||||||
-e PUBLIC_KEY="${{ env.PUBLIC_KEY }}" \
|
|
||||||
-e SUDO_ACCESS=false \
|
|
||||||
-e PASSWORD_ACCESS=true \
|
|
||||||
-e USER_PASSWORD=password \
|
|
||||||
-e USER_NAME=linuxserver.io \
|
|
||||||
--restart unless-stopped \
|
|
||||||
lscr.io/linuxserver/openssh-server:latest
|
|
||||||
docker exec openssh-server sh -c "hostname -i" > ip.txt
|
|
||||||
echo "REMOTE_HOST<<EOF" >> $GITHUB_ENV
|
|
||||||
cat ip.txt >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= container ip address ========="
|
|
||||||
cat ip.txt
|
|
||||||
echo "======================================"
|
|
||||||
sleep 2
|
|
||||||
|
|
||||||
- name: ssh key passphrase
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
passphrase: 1234
|
|
||||||
script: |
|
|
||||||
whoami
|
|
||||||
ls -al
|
|
||||||
|
|
||||||
- name: missing ssh key passphrase
|
|
||||||
uses: ./
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
script: |
|
|
||||||
whoami
|
|
||||||
ls -al
|
|
||||||
|
|
||||||
# https://github.com/appleboy/ssh-action/issues/75#issuecomment-668314271
|
|
||||||
- name: Multiline SSH commands interpreted as single lines
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
passphrase: 1234
|
|
||||||
script_stop: true
|
|
||||||
script: |
|
|
||||||
ls \
|
|
||||||
-lah
|
|
||||||
use_insecure_cipher: true
|
|
||||||
|
|
||||||
multiple-server:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: add public key to env
|
|
||||||
run: |
|
|
||||||
echo "PUBLIC_KEY<<EOF" >> $GITHUB_ENV
|
|
||||||
cat testdata/.ssh/id_passphrase.pub >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= public key ========="
|
|
||||||
cat testdata/.ssh/id_passphrase.pub
|
|
||||||
echo "============================"
|
|
||||||
echo "PRIVATE_KEY<<EOF" >> $GITHUB_ENV
|
|
||||||
cat testdata/.ssh/id_passphrase >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= private key ========="
|
|
||||||
cat testdata/.ssh/id_passphrase
|
|
||||||
echo "============================"
|
|
||||||
|
|
||||||
- name: create new ssh server
|
|
||||||
run: |
|
|
||||||
docker run -d \
|
|
||||||
--name=openssh-server-01 \
|
|
||||||
--hostname=openssh-server-01 \
|
|
||||||
-p 2222:2222 \
|
|
||||||
-e PUBLIC_KEY="${{ env.PUBLIC_KEY }}" \
|
|
||||||
-e SUDO_ACCESS=false \
|
|
||||||
-e PASSWORD_ACCESS=true \
|
|
||||||
-e USER_PASSWORD=password \
|
|
||||||
-e USER_NAME=linuxserver.io \
|
|
||||||
--restart unless-stopped \
|
|
||||||
lscr.io/linuxserver/openssh-server:latest
|
|
||||||
docker exec openssh-server-01 sh -c "hostname -i" > ip01.txt
|
|
||||||
echo "REMOTE_HOST_01<<EOF" >> $GITHUB_ENV
|
|
||||||
cat ip01.txt >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= container ip address ========="
|
|
||||||
cat ip01.txt
|
|
||||||
echo "======================================"
|
|
||||||
|
|
||||||
docker run -d \
|
|
||||||
--name=openssh-server-02 \
|
|
||||||
--hostname=openssh-server-02 \
|
|
||||||
-p 2223:2222 \
|
|
||||||
-e PUBLIC_KEY="${{ env.PUBLIC_KEY }}" \
|
|
||||||
-e SUDO_ACCESS=false \
|
|
||||||
-e PASSWORD_ACCESS=true \
|
|
||||||
-e USER_PASSWORD=password \
|
|
||||||
-e USER_NAME=linuxserver.io \
|
|
||||||
--restart unless-stopped \
|
|
||||||
lscr.io/linuxserver/openssh-server:latest
|
|
||||||
docker exec openssh-server-02 sh -c "hostname -i" > ip02.txt
|
|
||||||
echo "REMOTE_HOST_02<<EOF" >> $GITHUB_ENV
|
|
||||||
cat ip02.txt >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= container ip address ========="
|
|
||||||
cat ip02.txt
|
|
||||||
echo "======================================"
|
|
||||||
|
|
||||||
sleep 2
|
|
||||||
|
|
||||||
# https://github.com/appleboy/ssh-action/issues/85
|
|
||||||
- name: Deployment to multiple hosts with different ports
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
host: "${{ env.REMOTE_HOST_01 }}:2222,${{ env.REMOTE_HOST_02 }}:2222"
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
passphrase: 1234
|
|
||||||
script_stop: true
|
|
||||||
script: |
|
|
||||||
whoami
|
|
||||||
|
|
||||||
support-ed25519-key:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: add public key to env
|
|
||||||
run: |
|
|
||||||
echo "PUBLIC_KEY<<EOF" >> $GITHUB_ENV
|
|
||||||
cat testdata/.ssh/id_ed25519.pub >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= public key ========="
|
|
||||||
cat testdata/.ssh/id_ed25519.pub
|
|
||||||
echo "============================"
|
|
||||||
echo "PRIVATE_KEY<<EOF" >> $GITHUB_ENV
|
|
||||||
cat testdata/.ssh/id_ed25519 >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= private key ========="
|
|
||||||
cat testdata/.ssh/id_ed25519
|
|
||||||
echo "============================"
|
|
||||||
|
|
||||||
- name: create new ssh server
|
|
||||||
run: |
|
|
||||||
docker run -d \
|
|
||||||
--name=openssh-server \
|
|
||||||
--hostname=openssh-server \
|
|
||||||
-p 2222:2222 \
|
|
||||||
-e PUBLIC_KEY="${{ env.PUBLIC_KEY }}" \
|
|
||||||
-e SUDO_ACCESS=false \
|
|
||||||
-e PASSWORD_ACCESS=true \
|
|
||||||
-e USER_PASSWORD=password \
|
|
||||||
-e USER_NAME=linuxserver.io \
|
|
||||||
--restart unless-stopped \
|
|
||||||
lscr.io/linuxserver/openssh-server:latest
|
|
||||||
docker exec openssh-server sh -c "hostname -i" > ip.txt
|
|
||||||
echo "REMOTE_HOST<<EOF" >> $GITHUB_ENV
|
|
||||||
cat ip.txt >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= container ip address ========="
|
|
||||||
cat ip.txt
|
|
||||||
echo "======================================"
|
|
||||||
sleep 2
|
|
||||||
|
|
||||||
- name: testing id_ed25519 key
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
script: |
|
|
||||||
whoami
|
|
||||||
ls -al
|
|
||||||
|
|
||||||
testing-with-env:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: add public key to env
|
|
||||||
run: |
|
|
||||||
echo "PUBLIC_KEY<<EOF" >> $GITHUB_ENV
|
|
||||||
cat testdata/.ssh/id_ed25519.pub >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= public key ========="
|
|
||||||
cat testdata/.ssh/id_ed25519.pub
|
|
||||||
echo "============================"
|
|
||||||
echo "PRIVATE_KEY<<EOF" >> $GITHUB_ENV
|
|
||||||
cat testdata/.ssh/id_ed25519 >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= private key ========="
|
|
||||||
cat testdata/.ssh/id_ed25519
|
|
||||||
echo "============================"
|
|
||||||
|
|
||||||
- name: create new ssh server
|
|
||||||
run: |
|
|
||||||
docker run -d \
|
|
||||||
--name=openssh-server \
|
|
||||||
--hostname=openssh-server \
|
|
||||||
-p 2222:2222 \
|
|
||||||
-e PUBLIC_KEY="${{ env.PUBLIC_KEY }}" \
|
|
||||||
-e SUDO_ACCESS=true \
|
|
||||||
-e PASSWORD_ACCESS=true \
|
|
||||||
-e USER_NAME=linuxserver.io \
|
|
||||||
--restart unless-stopped \
|
|
||||||
lscr.io/linuxserver/openssh-server:latest
|
|
||||||
docker exec openssh-server sh -c "hostname -i" > ip.txt
|
|
||||||
echo "REMOTE_HOST<<EOF" >> $GITHUB_ENV
|
|
||||||
cat ip.txt >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= container ip address ========="
|
|
||||||
cat ip.txt
|
|
||||||
echo "======================================"
|
|
||||||
sleep 2
|
|
||||||
|
|
||||||
- name: testing id_ed25519 key
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
script: |
|
|
||||||
whoami
|
|
||||||
ls -al
|
|
||||||
|
|
||||||
- name: pass environment
|
|
||||||
uses: ./
|
|
||||||
env:
|
|
||||||
FOO: "BAR"
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
envs: FOO
|
|
||||||
script: |
|
|
||||||
echo "I am $FOO, thanks"
|
|
||||||
echo "I am $BAR, thanks"
|
|
||||||
|
|
||||||
- name: pass multiple environment
|
|
||||||
uses: ./
|
|
||||||
env:
|
|
||||||
FOO: "BAR"
|
|
||||||
BAR: "FOO"
|
|
||||||
SHA: ${{ github.sha }}
|
|
||||||
PORT: ${{ secrets.PORT }}
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
envs: FOO,BAR,SHA,PORT
|
|
||||||
script: |
|
|
||||||
echo "I am $FOO, thanks"
|
|
||||||
echo "I am $BAR, thanks"
|
|
||||||
echo "sha: $SHA"
|
|
||||||
echo "port: $PORT"
|
|
||||||
|
|
||||||
- name: custom envs format
|
|
||||||
uses: ./
|
|
||||||
env:
|
|
||||||
FOO: "BAR"
|
|
||||||
AAA: "BBB"
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
envs: FOO,BAR,AAA
|
|
||||||
envs_format: export TEST_{NAME}={VALUE}
|
|
||||||
script: |
|
|
||||||
echo "I am $TEST_FOO, thanks"
|
|
||||||
echo "I am $TEST_BAR, thanks"
|
|
||||||
echo "I am $BAR, thanks"
|
|
||||||
echo "I am $TEST_AAA, thanks"
|
|
||||||
|
|
||||||
- name: pass all ENV variables to script
|
|
||||||
uses: ./
|
|
||||||
env:
|
|
||||||
INPUT_FOO: "BAR"
|
|
||||||
INPUT_AAA: "BBB"
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
allenvs: true
|
|
||||||
script: |
|
|
||||||
echo "I am $INPUT_FOO, thanks"
|
|
||||||
echo "I am $INPUT_AAA, thanks"
|
|
||||||
echo "$GITHUB_BASE_REF"
|
|
||||||
echo "$GITHUB_REF"
|
|
||||||
|
|
||||||
- name: pass secret variable in shell
|
|
||||||
uses: ./
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
script: cd ${{ secrets.PORT }}
|
|
||||||
|
|
||||||
- name: switch to root user
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
script_stop: true
|
|
||||||
request_pty: true
|
|
||||||
command_timeout: 30s
|
|
||||||
script: |
|
|
||||||
whoami && echo 'hello world' && touch todo.txt
|
|
||||||
sudo whoami
|
|
||||||
|
|
||||||
testing06:
|
|
||||||
name: testing ipv6
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up WARP
|
|
||||||
uses: fscarmen/warp-on-actions@v1.1
|
|
||||||
with:
|
|
||||||
stack: dual
|
|
||||||
|
|
||||||
- name: testing ipv6 for command
|
|
||||||
run: |
|
|
||||||
curl -m 9 --ipv6 --verbose https://google.com
|
|
||||||
|
|
||||||
- name: testing ipv6
|
|
||||||
uses: ./
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
host: 2402:1f00:8000:800::2628
|
|
||||||
username: ubuntu
|
|
||||||
password: ${{ secrets.OVH_PASSWORD }}
|
|
||||||
protocol: tcp6
|
|
||||||
port: 22
|
|
||||||
command_timeout: 30s
|
|
||||||
script: |
|
|
||||||
whoami
|
|
|
@ -1,474 +0,0 @@
|
||||||
name: testing stable version
|
|
||||||
|
|
||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
default-user-name-password:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: create new ssh server
|
|
||||||
run: |
|
|
||||||
docker run -d \
|
|
||||||
--name=openssh-server \
|
|
||||||
--hostname=openssh-server \
|
|
||||||
-p 2222:2222 \
|
|
||||||
-e SUDO_ACCESS=false \
|
|
||||||
-e PASSWORD_ACCESS=true \
|
|
||||||
-e USER_PASSWORD=password \
|
|
||||||
-e USER_NAME=linuxserver.io \
|
|
||||||
--restart unless-stopped \
|
|
||||||
lscr.io/linuxserver/openssh-server:latest
|
|
||||||
docker exec openssh-server sh -c "hostname -i" > ip.txt
|
|
||||||
echo "REMOTE_HOST<<EOF" >> $GITHUB_ENV
|
|
||||||
cat ip.txt >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= container ip address ========="
|
|
||||||
cat ip.txt
|
|
||||||
echo "======================================"
|
|
||||||
sleep 2
|
|
||||||
|
|
||||||
- name: ssh by username and password
|
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
password: password
|
|
||||||
port: 2222
|
|
||||||
script: whoami
|
|
||||||
|
|
||||||
check-ssh-key:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: add public key to env
|
|
||||||
run: |
|
|
||||||
echo "PUBLIC_KEY<<EOF" >> $GITHUB_ENV
|
|
||||||
cat testdata/.ssh/id_rsa.pub >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= public key ========="
|
|
||||||
cat testdata/.ssh/id_rsa.pub
|
|
||||||
echo "============================"
|
|
||||||
echo "PRIVATE_KEY<<EOF" >> $GITHUB_ENV
|
|
||||||
cat testdata/.ssh/id_rsa >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= private key ========="
|
|
||||||
cat testdata/.ssh/id_rsa
|
|
||||||
echo "============================"
|
|
||||||
|
|
||||||
- name: create new ssh server
|
|
||||||
run: |
|
|
||||||
docker run -d \
|
|
||||||
--name=openssh-server \
|
|
||||||
--hostname=openssh-server \
|
|
||||||
-p 2222:2222 \
|
|
||||||
-e PUBLIC_KEY="${{ env.PUBLIC_KEY }}" \
|
|
||||||
-e SUDO_ACCESS=false \
|
|
||||||
-e PASSWORD_ACCESS=true \
|
|
||||||
-e USER_PASSWORD=password \
|
|
||||||
-e USER_NAME=linuxserver.io \
|
|
||||||
--restart unless-stopped \
|
|
||||||
lscr.io/linuxserver/openssh-server:latest
|
|
||||||
docker exec openssh-server sh -c "hostname -i" > ip.txt
|
|
||||||
echo "REMOTE_HOST<<EOF" >> $GITHUB_ENV
|
|
||||||
cat ip.txt >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= container ip address ========="
|
|
||||||
cat ip.txt
|
|
||||||
echo "======================================"
|
|
||||||
sleep 2
|
|
||||||
|
|
||||||
- name: ssh by private key
|
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
script: whoami
|
|
||||||
|
|
||||||
- name: wrong password but correct key
|
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
password: "abcdef"
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
script: whoami
|
|
||||||
|
|
||||||
- name: correct password but wrong key
|
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
password: password
|
|
||||||
key: password
|
|
||||||
port: 2222
|
|
||||||
script: whoami
|
|
||||||
|
|
||||||
- name: stop script if command error
|
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
password: password
|
|
||||||
key: password
|
|
||||||
port: 2222
|
|
||||||
script_stop: true
|
|
||||||
sync: true
|
|
||||||
debug: true
|
|
||||||
script: |
|
|
||||||
mkdir abc/def
|
|
||||||
ls -al
|
|
||||||
|
|
||||||
support-key-passphrase:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: add public key to env
|
|
||||||
run: |
|
|
||||||
echo "PUBLIC_KEY<<EOF" >> $GITHUB_ENV
|
|
||||||
cat testdata/.ssh/id_passphrase.pub >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= public key ========="
|
|
||||||
cat testdata/.ssh/id_passphrase.pub
|
|
||||||
echo "============================"
|
|
||||||
echo "PRIVATE_KEY<<EOF" >> $GITHUB_ENV
|
|
||||||
cat testdata/.ssh/id_passphrase >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= private key ========="
|
|
||||||
cat testdata/.ssh/id_passphrase
|
|
||||||
echo "============================"
|
|
||||||
|
|
||||||
- name: create new ssh server
|
|
||||||
run: |
|
|
||||||
docker run -d \
|
|
||||||
--name=openssh-server \
|
|
||||||
--hostname=openssh-server \
|
|
||||||
-p 2222:2222 \
|
|
||||||
-e PUBLIC_KEY="${{ env.PUBLIC_KEY }}" \
|
|
||||||
-e SUDO_ACCESS=false \
|
|
||||||
-e PASSWORD_ACCESS=true \
|
|
||||||
-e USER_PASSWORD=password \
|
|
||||||
-e USER_NAME=linuxserver.io \
|
|
||||||
--restart unless-stopped \
|
|
||||||
lscr.io/linuxserver/openssh-server:latest
|
|
||||||
docker exec openssh-server sh -c "hostname -i" > ip.txt
|
|
||||||
echo "REMOTE_HOST<<EOF" >> $GITHUB_ENV
|
|
||||||
cat ip.txt >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= container ip address ========="
|
|
||||||
cat ip.txt
|
|
||||||
echo "======================================"
|
|
||||||
sleep 2
|
|
||||||
|
|
||||||
- name: ssh key passphrase
|
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
passphrase: 1234
|
|
||||||
script: |
|
|
||||||
whoami
|
|
||||||
ls -al
|
|
||||||
|
|
||||||
- name: missing ssh key passphrase
|
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
script: |
|
|
||||||
whoami
|
|
||||||
ls -al
|
|
||||||
|
|
||||||
# https://github.com/appleboy/ssh-action/issues/75#issuecomment-668314271
|
|
||||||
- name: Multiline SSH commands interpreted as single lines
|
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
passphrase: 1234
|
|
||||||
script_stop: true
|
|
||||||
script: |
|
|
||||||
ls \
|
|
||||||
-lah
|
|
||||||
use_insecure_cipher: true
|
|
||||||
|
|
||||||
multiple-server:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: add public key to env
|
|
||||||
run: |
|
|
||||||
echo "PUBLIC_KEY<<EOF" >> $GITHUB_ENV
|
|
||||||
cat testdata/.ssh/id_passphrase.pub >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= public key ========="
|
|
||||||
cat testdata/.ssh/id_passphrase.pub
|
|
||||||
echo "============================"
|
|
||||||
echo "PRIVATE_KEY<<EOF" >> $GITHUB_ENV
|
|
||||||
cat testdata/.ssh/id_passphrase >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= private key ========="
|
|
||||||
cat testdata/.ssh/id_passphrase
|
|
||||||
echo "============================"
|
|
||||||
|
|
||||||
- name: create new ssh server
|
|
||||||
run: |
|
|
||||||
docker run -d \
|
|
||||||
--name=openssh-server-01 \
|
|
||||||
--hostname=openssh-server-01 \
|
|
||||||
-p 2222:2222 \
|
|
||||||
-e PUBLIC_KEY="${{ env.PUBLIC_KEY }}" \
|
|
||||||
-e SUDO_ACCESS=false \
|
|
||||||
-e PASSWORD_ACCESS=true \
|
|
||||||
-e USER_PASSWORD=password \
|
|
||||||
-e USER_NAME=linuxserver.io \
|
|
||||||
--restart unless-stopped \
|
|
||||||
lscr.io/linuxserver/openssh-server:latest
|
|
||||||
docker exec openssh-server-01 sh -c "hostname -i" > ip01.txt
|
|
||||||
echo "REMOTE_HOST_01<<EOF" >> $GITHUB_ENV
|
|
||||||
cat ip01.txt >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= container ip address ========="
|
|
||||||
cat ip01.txt
|
|
||||||
echo "======================================"
|
|
||||||
|
|
||||||
docker run -d \
|
|
||||||
--name=openssh-server-02 \
|
|
||||||
--hostname=openssh-server-02 \
|
|
||||||
-p 2223:2222 \
|
|
||||||
-e PUBLIC_KEY="${{ env.PUBLIC_KEY }}" \
|
|
||||||
-e SUDO_ACCESS=false \
|
|
||||||
-e PASSWORD_ACCESS=true \
|
|
||||||
-e USER_PASSWORD=password \
|
|
||||||
-e USER_NAME=linuxserver.io \
|
|
||||||
--restart unless-stopped \
|
|
||||||
lscr.io/linuxserver/openssh-server:latest
|
|
||||||
docker exec openssh-server-02 sh -c "hostname -i" > ip02.txt
|
|
||||||
echo "REMOTE_HOST_02<<EOF" >> $GITHUB_ENV
|
|
||||||
cat ip02.txt >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= container ip address ========="
|
|
||||||
cat ip02.txt
|
|
||||||
echo "======================================"
|
|
||||||
|
|
||||||
sleep 2
|
|
||||||
|
|
||||||
# https://github.com/appleboy/ssh-action/issues/85
|
|
||||||
- name: Deployment to multiple hosts with different ports
|
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
|
||||||
with:
|
|
||||||
host: "${{ env.REMOTE_HOST_01 }}:2222,${{ env.REMOTE_HOST_02 }}:2222"
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
passphrase: 1234
|
|
||||||
script_stop: true
|
|
||||||
script: |
|
|
||||||
whoami
|
|
||||||
|
|
||||||
support-ed25519-key:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: add public key to env
|
|
||||||
run: |
|
|
||||||
echo "PUBLIC_KEY<<EOF" >> $GITHUB_ENV
|
|
||||||
cat testdata/.ssh/id_ed25519.pub >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= public key ========="
|
|
||||||
cat testdata/.ssh/id_ed25519.pub
|
|
||||||
echo "============================"
|
|
||||||
echo "PRIVATE_KEY<<EOF" >> $GITHUB_ENV
|
|
||||||
cat testdata/.ssh/id_ed25519 >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= private key ========="
|
|
||||||
cat testdata/.ssh/id_ed25519
|
|
||||||
echo "============================"
|
|
||||||
|
|
||||||
- name: create new ssh server
|
|
||||||
run: |
|
|
||||||
docker run -d \
|
|
||||||
--name=openssh-server \
|
|
||||||
--hostname=openssh-server \
|
|
||||||
-p 2222:2222 \
|
|
||||||
-e PUBLIC_KEY="${{ env.PUBLIC_KEY }}" \
|
|
||||||
-e SUDO_ACCESS=false \
|
|
||||||
-e PASSWORD_ACCESS=true \
|
|
||||||
-e USER_PASSWORD=password \
|
|
||||||
-e USER_NAME=linuxserver.io \
|
|
||||||
--restart unless-stopped \
|
|
||||||
lscr.io/linuxserver/openssh-server:latest
|
|
||||||
docker exec openssh-server sh -c "hostname -i" > ip.txt
|
|
||||||
echo "REMOTE_HOST<<EOF" >> $GITHUB_ENV
|
|
||||||
cat ip.txt >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= container ip address ========="
|
|
||||||
cat ip.txt
|
|
||||||
echo "======================================"
|
|
||||||
sleep 2
|
|
||||||
|
|
||||||
- name: testing id_ed25519 key
|
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
script: |
|
|
||||||
whoami
|
|
||||||
ls -al
|
|
||||||
|
|
||||||
testing-with-env:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: add public key to env
|
|
||||||
run: |
|
|
||||||
echo "PUBLIC_KEY<<EOF" >> $GITHUB_ENV
|
|
||||||
cat testdata/.ssh/id_ed25519.pub >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= public key ========="
|
|
||||||
cat testdata/.ssh/id_ed25519.pub
|
|
||||||
echo "============================"
|
|
||||||
echo "PRIVATE_KEY<<EOF" >> $GITHUB_ENV
|
|
||||||
cat testdata/.ssh/id_ed25519 >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= private key ========="
|
|
||||||
cat testdata/.ssh/id_ed25519
|
|
||||||
echo "============================"
|
|
||||||
|
|
||||||
- name: create new ssh server
|
|
||||||
run: |
|
|
||||||
docker run -d \
|
|
||||||
--name=openssh-server \
|
|
||||||
--hostname=openssh-server \
|
|
||||||
-p 2222:2222 \
|
|
||||||
-e PUBLIC_KEY="${{ env.PUBLIC_KEY }}" \
|
|
||||||
-e SUDO_ACCESS=true \
|
|
||||||
-e PASSWORD_ACCESS=true \
|
|
||||||
-e USER_NAME=linuxserver.io \
|
|
||||||
--restart unless-stopped \
|
|
||||||
lscr.io/linuxserver/openssh-server:latest
|
|
||||||
docker exec openssh-server sh -c "hostname -i" > ip.txt
|
|
||||||
echo "REMOTE_HOST<<EOF" >> $GITHUB_ENV
|
|
||||||
cat ip.txt >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
|
||||||
echo "======= container ip address ========="
|
|
||||||
cat ip.txt
|
|
||||||
echo "======================================"
|
|
||||||
sleep 2
|
|
||||||
|
|
||||||
- name: testing id_ed25519 key
|
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
script: |
|
|
||||||
whoami
|
|
||||||
ls -al
|
|
||||||
|
|
||||||
- name: pass environment
|
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
|
||||||
env:
|
|
||||||
FOO: "BAR"
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
envs: FOO
|
|
||||||
script: |
|
|
||||||
echo "I am $FOO, thanks"
|
|
||||||
echo "I am $BAR, thanks"
|
|
||||||
|
|
||||||
- name: pass multiple environment
|
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
|
||||||
env:
|
|
||||||
FOO: "BAR"
|
|
||||||
BAR: "FOO"
|
|
||||||
SHA: ${{ github.sha }}
|
|
||||||
PORT: ${{ secrets.PORT }}
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
envs: FOO,BAR,SHA,PORT
|
|
||||||
script: |
|
|
||||||
echo "I am $FOO, thanks"
|
|
||||||
echo "I am $BAR, thanks"
|
|
||||||
echo "sha: $SHA"
|
|
||||||
echo "port: $PORT"
|
|
||||||
|
|
||||||
- name: custom envs format
|
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
|
||||||
env:
|
|
||||||
FOO: "BAR"
|
|
||||||
AAA: "BBB"
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
envs: FOO,BAR,AAA
|
|
||||||
envs_format: export TEST_{NAME}={VALUE}
|
|
||||||
script: |
|
|
||||||
echo "I am $TEST_FOO, thanks"
|
|
||||||
echo "I am $TEST_BAR, thanks"
|
|
||||||
echo "I am $BAR, thanks"
|
|
||||||
echo "I am $TEST_AAA, thanks"
|
|
||||||
|
|
||||||
- name: pass all ENV variables to script
|
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
|
||||||
env:
|
|
||||||
INPUT_FOO: "BAR"
|
|
||||||
INPUT_AAA: "BBB"
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
allenvs: true
|
|
||||||
script: |
|
|
||||||
echo "I am $INPUT_FOO, thanks"
|
|
||||||
echo "I am $INPUT_AAA, thanks"
|
|
||||||
echo "$GITHUB_BASE_REF"
|
|
||||||
echo "$GITHUB_REF"
|
|
||||||
|
|
||||||
- name: switch to root user
|
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
|
||||||
with:
|
|
||||||
host: ${{ env.REMOTE_HOST }}
|
|
||||||
username: linuxserver.io
|
|
||||||
key: ${{ env.PRIVATE_KEY }}
|
|
||||||
port: 2222
|
|
||||||
script_stop: true
|
|
||||||
request_pty: true
|
|
||||||
command_timeout: 30s
|
|
||||||
script: |
|
|
||||||
whoami && echo 'hello world' && touch todo.txt
|
|
||||||
sudo whoami
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
name: testing master
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
env:
|
||||||
|
FOO: "BAR"
|
||||||
|
BAR: "FOO"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
testing01:
|
||||||
|
name: testing new bash flow
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: try bash script
|
||||||
|
uses: appleboy/ssh-action@master
|
||||||
|
with:
|
||||||
|
host: 2402:1f00:8000:800::2628
|
||||||
|
username: ubuntu
|
||||||
|
password: ${{ secrets.OVH_PASSWORD }}
|
||||||
|
protocol: tcp6
|
||||||
|
port: 22
|
||||||
|
command_timeout: 30s
|
||||||
|
script: |
|
||||||
|
whoami
|
|
@ -1,4 +1,4 @@
|
||||||
FROM ghcr.io/appleboy/drone-ssh:1.7.7
|
FROM ghcr.io/appleboy/drone-ssh:1.7.4
|
||||||
|
|
||||||
COPY entrypoint.sh /bin/entrypoint.sh
|
COPY entrypoint.sh /bin/entrypoint.sh
|
||||||
|
|
||||||
|
|
44
README.md
44
README.md
|
@ -122,29 +122,14 @@ Copy Private Key content and paste in Github Secrets.
|
||||||
|
|
||||||
### Copy rsa Private key
|
### Copy rsa Private key
|
||||||
|
|
||||||
Before copying the private key, install `clip` command as shown below:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Ubuntu
|
clip < ~/.ssh/id_rsa
|
||||||
sudo apt-get install xclip
|
|
||||||
```
|
|
||||||
|
|
||||||
copy the private key:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# macOS
|
|
||||||
pbcopy < ~/.ssh/id_rsa
|
|
||||||
# Ubuntu
|
|
||||||
xclip < ~/.ssh/id_rsa
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Copy ed25519 Private key
|
### Copy ed25519 Private key
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# macOS
|
clip < ~/.ssh/id_ed25519
|
||||||
pbcopy < ~/.ssh/id_ed25519
|
|
||||||
# Ubuntu
|
|
||||||
xclip < ~/.ssh/id_ed25519
|
|
||||||
```
|
```
|
||||||
|
|
||||||
See the detail information about [SSH login without password](http://www.linuxproblem.org/art_9.html).
|
See the detail information about [SSH login without password](http://www.linuxproblem.org/art_9.html).
|
||||||
|
@ -236,8 +221,6 @@ ssh-keygen -t ed25519 -a 200 -C "your_email@example.com"
|
||||||
ls -al
|
ls -al
|
||||||
```
|
```
|
||||||
|
|
||||||
The default value of `port` is `22`.
|
|
||||||
|
|
||||||
#### Multiple hosts with different port
|
#### Multiple hosts with different port
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
|
@ -412,29 +395,6 @@ Now you can adjust you config:
|
||||||
ls -al
|
ls -al
|
||||||
```
|
```
|
||||||
|
|
||||||
## Q&A
|
|
||||||
|
|
||||||
### Command not found (npm or other command)
|
|
||||||
|
|
||||||
See the [issue comment](https://github.com/appleboy/ssh-action/issues/31#issuecomment-1006565847) about interactive vs non interactive shell. Thanks @kocyigityunus for the solution.
|
|
||||||
|
|
||||||
Basically, if you are running a command in a non interactive shell, like ssh-action, on many linux distros,
|
|
||||||
|
|
||||||
`/etc/bash.bashrc` file has a specific command that returns only, so some of the files didn't run and some specific commands doesn't add to path,
|
|
||||||
|
|
||||||
```sh
|
|
||||||
# /etc/bash.bashrc
|
|
||||||
# System-wide .bashrc file for interactive bash(1) shells.
|
|
||||||
|
|
||||||
# To enable the settings / commands in this file for login shells as well,
|
|
||||||
# this file has to be sourced in /etc/profile.
|
|
||||||
|
|
||||||
# If not running interactively, don't do anything
|
|
||||||
[ -z "$PS1" ] && return`
|
|
||||||
```
|
|
||||||
|
|
||||||
just comment out the line that returns early and everything should work fine, or you can use the real paths of the commands that you would like to use.
|
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
We would love for you to contribute to `appleboy/ssh-action`, pull requests are welcome!
|
We would love for you to contribute to `appleboy/ssh-action`, pull requests are welcome!
|
||||||
|
|
|
@ -8,7 +8,7 @@ export GITHUB="true"
|
||||||
|
|
||||||
GITHUB_ACTION_PATH="${GITHUB_ACTION_PATH%/}"
|
GITHUB_ACTION_PATH="${GITHUB_ACTION_PATH%/}"
|
||||||
DRONE_SSH_RELEASE_URL="${DRONE_SSH_RELEASE_URL:-https://github.com/appleboy/drone-ssh/releases/download}"
|
DRONE_SSH_RELEASE_URL="${DRONE_SSH_RELEASE_URL:-https://github.com/appleboy/drone-ssh/releases/download}"
|
||||||
DRONE_SSH_VERSION="${DRONE_SSH_VERSION:-1.7.7}"
|
DRONE_SSH_VERSION="${DRONE_SSH_VERSION:-1.7.4}"
|
||||||
|
|
||||||
function detect_client_info() {
|
function detect_client_info() {
|
||||||
if [ -n "${SSH_CLIENT_OS-}" ]; then
|
if [ -n "${SSH_CLIENT_OS-}" ]; then
|
||||||
|
@ -61,9 +61,6 @@ DOWNLOAD_URL_PREFIX="${DRONE_SSH_RELEASE_URL}/v${DRONE_SSH_VERSION}"
|
||||||
CLIENT_BINARY="drone-ssh-${DRONE_SSH_VERSION}-${CLIENT_PLATFORM}-${CLIENT_ARCH}"
|
CLIENT_BINARY="drone-ssh-${DRONE_SSH_VERSION}-${CLIENT_PLATFORM}-${CLIENT_ARCH}"
|
||||||
TARGET="${GITHUB_ACTION_PATH}/${CLIENT_BINARY}"
|
TARGET="${GITHUB_ACTION_PATH}/${CLIENT_BINARY}"
|
||||||
echo "Will download ${CLIENT_BINARY} from ${DOWNLOAD_URL_PREFIX}"
|
echo "Will download ${CLIENT_BINARY} from ${DOWNLOAD_URL_PREFIX}"
|
||||||
curl -fsSL --retry 5 --keepalive-time 2 "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o ${TARGET}
|
curl -fL --retry 3 --keepalive-time 2 "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o ${TARGET}
|
||||||
chmod +x ${TARGET}
|
chmod +x ${TARGET}
|
||||||
echo "======= CLI Version ======="
|
sh -c "${TARGET} $*"
|
||||||
sh -c "${TARGET} --version" # print version
|
|
||||||
echo "==========================="
|
|
||||||
sh -c "${TARGET} $*" # run the command
|
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
-----BEGIN OPENSSH PRIVATE KEY-----
|
|
||||||
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
|
|
||||||
QyNTUxOQAAACDoi7FltQCqpWporKh61nJUPIeazUYdzdstncoeU5XS2AAAAKBF5e2SReXt
|
|
||||||
kgAAAAtzc2gtZWQyNTUxOQAAACDoi7FltQCqpWporKh61nJUPIeazUYdzdstncoeU5XS2A
|
|
||||||
AAAEBrsLG1vSg08yaQgYM46KQW93Lz2ZikS1tTMH35gfHhpOiLsWW1AKqlamisqHrWclQ8
|
|
||||||
h5rNRh3N2y2dyh5TldLYAAAAFnlvdXJfZW1haWxAZXhhbXBsZS5jb20BAgMEBQYH
|
|
||||||
-----END OPENSSH PRIVATE KEY-----
|
|
|
@ -1 +0,0 @@
|
||||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOiLsWW1AKqlamisqHrWclQ8h5rNRh3N2y2dyh5TldLY your_email@example.com
|
|
|
@ -1,39 +0,0 @@
|
||||||
-----BEGIN OPENSSH PRIVATE KEY-----
|
|
||||||
b3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYmNyeXB0AAAAGAAAABA5p9eRXu
|
|
||||||
BJantF5ARnBfnqAAAAEAAAAAEAAAGXAAAAB3NzaC1yc2EAAAADAQABAAABgQCuWKQh09Vl
|
|
||||||
v3IRu/+oK18ws72VQS7PCXJaIEp1L+7HqC/6+plizaVgd9SjAg0UJSqvp+WfpU5I53hevE
|
|
||||||
0Ip3s71Tsoeu1azWoi2Mbq3ycZ5ysh4htZZklKBkYsyW+2EdITPcmhA8rF+KiDRyuvk7fD
|
|
||||||
o08G3Y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5zNjV9NOjONktUjLznRpfY/yBxOtPe9lxnaKfniRTK5HjBbi8hmei9G8lIHV9qyhpURYM
|
|
||||||
1EdZB86uZWJOaRA8/fpwt8z2stmpKpuGFQOSgr7W5JQWSFeTAMYPoafsm0PD1zSyw7j1wE
|
|
||||||
DWlmUAzpMirSnPUQndR8IcF7fZmI8J1g30eIFTQpoTDCyoiegkOXHa9HyWwmEAwws1PCWZ
|
|
||||||
a5Viw6XLJI3tahSNhZzdY/UNFikuO8AuIDXykBM7riaqK4PADtmGY88QGWXQbw5xxWtH6r
|
|
||||||
Wwk4KzDL9UFeCMSiQo//e+kg/mPLml6Sa4THOzP3iOmx810JoMDmF/jvtpC+ew5HpPPtg4
|
|
||||||
h55pSap77CEhEhE5FPZKuH9f7/E=
|
|
||||||
-----END OPENSSH PRIVATE KEY-----
|
|
|
@ -1 +0,0 @@
|
||||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCuWKQh09Vlv3IRu/+oK18ws72VQS7PCXJaIEp1L+7HqC/6+plizaVgd9SjAg0UJSqvp+WfpU5I53hevE0Ip3s71Tsoeu1azWoi2Mbq3ycZ5ysh4htZZklKBkYsyW+2EdITPcmhA8rF+KiDRyuvk7fDo08G3YWgbCScY6VkLA06ReThCehAY54WNvgbx7lyvCWj1qYG0XjM7mTQHr3QN0JHJNdFaG3MCi1rTG2hK/owOlzcesIbzfM1VMIQG5HT4vNg/ULP0BTZ7pGtdvWlvR/660KQwc1tBxLqxI1dYoCgiS/gMyPxhOtNKTvhR/NR7e2sp/StkXURIxTHhj0KjKbnpXTQ2IndnesHAG9kDJ7c31SXastWpbXWhCIdRZk+KQsnmwobZlw3w1vfx2Dm7M2ZCcCgG/ArUPjY44nGOWO5Nz98QHyz3IocsKJXrGVo/3YpNNu72jkw7UGVMqh1dAe3ZMaCAC5pAAa0HKvkid7jdXawL2b//+vsAPSHdnEjP58= mtk10671@NB22040567
|
|
|
@ -1,27 +0,0 @@
|
||||||
-----BEGIN RSA PRIVATE KEY-----
|
|
||||||
MIIEpAIBAAKCAQEA4e2D/qPN08pzTac+a8ZmlP1ziJOXk45CynMPtva0rtK/RB26
|
|
||||||
VbfAF0hIJji7ltvnYnqCU9oFfvEM33cTn7T96+od8ib/Vz25YU8ZbstqtIskPuwC
|
|
||||||
bv3K0mAHgsviJyRD7yM+QKTbBQEgbGuW6gtbMKhiYfiIB4Dyj7AdS/fk3v26wDgz
|
|
||||||
7SHI5OBqu9bv1KhxQYdFEnU3PAtAqeccgzNpbH3eYLyGzuUxEIJlhpZ/uU2G9ppj
|
|
||||||
/cSrONVPiI8Ahi4RrlZjmP5l57/sq1ClGulyLpFcMw68kP5FikyqHpHJHRBNgU57
|
|
||||||
1y0Ph33SjBbs0haCIAcmreWEhGe+/OXnJe6VUQIDAQABAoIBAH97emORIm9DaVSD
|
|
||||||
7mD6DqA7c5m5Tmpgd6eszU08YC/Vkz9oVuBPUwDQNIX8tT0m0KVs42VVPIyoj874
|
|
||||||
bgZMJoucC1G8V5Bur9AMxhkShx9g9A7dNXJTmsKilRpk2TOk7wBdLp9jZoKoZBdJ
|
|
||||||
jlp6FfaazQjjKD6zsCsMATwAoRCBpBNsmT6QDN0n0bIgY0tE6YGQaDdka0dAv68G
|
|
||||||
R0VZrcJ9voT6+f+rgJLoojn2DAu6iXaM99Gv8FK91YCymbQlXXgrk6CyS0IHexN7
|
|
||||||
V7a3k767KnRbrkqd3o6JyNun/CrUjQwHs1IQH34tvkWScbseRaFehcAm6mLT93RP
|
|
||||||
muauvMECgYEA9AXGtfDMse0FhvDPZx4mx8x+vcfsLvDHcDLkf/lbyPpu97C27b/z
|
|
||||||
ia07bu5TAXesUZrWZtKA5KeRE5doQSdTOv1N28BEr8ZwzDJwfn0DPUYUOxsN2iIy
|
|
||||||
MheO5A45Ko7bjKJVkZ61Mb1UxtqCTF9mqu9R3PBdJGthWOd+HUvF460CgYEA7QRf
|
|
||||||
Z8+vpGA+eSuu29e0xgRKnRzed5zXYpcI4aERc3Jz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XHAQWcnxDcNevv2ZMOUl0ybvv9yH0BiGbRBd1Hy8/QPILbAQaqu0oQE7fubN8Q8lqb3Jg0loID4x/5GPhSY8WAXpuLcXTOrb93SnCw1JsAgJDNqpuuRFy3BSZ7wBOr1jfeIoo7xk14OHiUjJ0uXDL9cLMkcw6ElWz81mrD2VCkXUz+qFyjJ+G7aGWRtctZoOzKln4yfNfUmwW8/8ra3QnmrMZ2xW2Ylw3ZhO+tLi7jINHYFb54bAdLVPUU1ctIuJns2qkWnjJCxxMiynIqCif20/OU1n8CTJuOWiURmRdmvKOH4PE3JxC2Qnk/3tV3Cf8hp1CH5VjBZ9AjGj5MDMHXyu34VY2WvYo5QyzfS3ySPoT8kCO0G0xpvjwCMHOK+G2RP4kqb/KKZguiKdgintBXuskTlJmD7kcMQ== deploy@easyssh
|
|
Loading…
Reference in New Issue