Skip to content

Commit 7da9fe4

Browse files
committed
ed25519
1 parent 29f1ba0 commit 7da9fe4

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

.github/workflows/qiita-ci.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -169,28 +169,17 @@ jobs:
169169
conda deactivate
170170
171171
echo "8. Setting up SSH"
172-
ssh-keygen -t rsa -q -N '' -f $PWD/qiita_ware/test/test_data/test_key
172+
ssh-keygen -t ed25519 -a 200 -N '' -f $PWD/qiita_ware/test/test_data/test_key
173173
mkdir ~/.ssh/
174174
cp $PWD/qiita_ware/test/test_data/test_key* ~/.ssh/
175175
cat ~/.ssh/test_key.pub > ~/.ssh/authorized_keys
176176
chmod 600 $PWD/qiita_ware/test/test_data/test_key*
177177
chmod 600 ~/.ssh/*
178-
cat >>~/.ssh/config <<END
179-
Host qiita
180-
HostName localhost
181-
User $USER
182-
IdentityFile ~/.ssh/test_key.key
183-
StrictHostKeyChecking no
184-
END
185178
chmod 700 ~/.ssh/
186-
# https://superuser.com/a/1145465
187-
sudo chown $USER:$USER /home/$USER/{.,.ssh/,.ssh/authorized_keys}
188-
sudo chmod u+rwX,go-rwX,-t /home/$USER/{.ssh/,.ssh/authorized_keys}
189-
sudo chmod go-w /home/$USER/
190179
echo "Connecting as $USER@localhost"
191180
# this line (and the -o StrictHostKeyChecking=no) is so the server
192181
# is added to the list of known servers
193-
scp -vvvvv -O -o StrictHostKeyChecking=no -i $PWD/qiita_ware/test/test_data/test_key $USER@localhost:/home/runner/work/qiita/qiita/qiita_ware/test/test_data/random_key /home/runner/work/qiita/qiita/qiita_ware/test/test_data/random_key_copy_1
182+
scp -O -o StrictHostKeyChecking=no -i $PWD/qiita_ware/test/test_data/test_key $USER@localhost:/home/runner/work/qiita/qiita/qiita_ware/test/test_data/random_key /home/runner/work/qiita/qiita/qiita_ware/test/test_data/random_key_copy_1
194183
195184
- name: Main tests
196185
shell: bash -l {0}

0 commit comments

Comments
 (0)