File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments