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:
169
169
conda deactivate
170
170
171
171
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
173
173
mkdir ~/.ssh/
174
174
cp $PWD/qiita_ware/test/test_data/test_key* ~/.ssh/
175
175
cat ~/.ssh/test_key.pub > ~/.ssh/authorized_keys
176
176
chmod 600 $PWD/qiita_ware/test/test_data/test_key*
177
177
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
185
178
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/
190
179
echo "Connecting as $USER@localhost"
191
180
# this line (and the -o StrictHostKeyChecking=no) is so the server
192
181
# 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
194
183
195
184
- name : Main tests
196
185
shell : bash -l {0}
You can’t perform that action at this time.
0 commit comments