Skip to content

Commit

Permalink
Merge ade1436 into 684a7a4
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Jan 9, 2023
2 parents 684a7a4 + ade1436 commit 9dc3cff
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/qiita-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,17 @@ jobs:
conda deactivate
echo "8. Setting up SSH"
ssh-keygen -t rsa-sha2-256 -b 4096 -N '' -f $PWD/qiita_ware/test/test_data/test_key
ssh-keygen -t rsa -b 4096 -N '' -f $PWD/qiita_ware/test/test_data/test_key
mkdir ~/.ssh/
cp $PWD/qiita_ware/test/test_data/test_key* ~/.ssh/
cat ~/.ssh/test_key.pub > ~/.ssh/authorized_keys
chmod 600 $PWD/qiita_ware/test/test_data/test_key*
chmod 600 ~/.ssh/*
chmod 700 ~/.ssh/
scp -o StrictHostKeyChecking=no -i $PWD/qiita_ware/test/test_data/test_key $USER@localhost:$PWD/qiita_ware/test/test_data/random_key $PWD/qiita_ware/test/test_data/random_key_copy
echo "Connecting as $USER@localhost"
# this line (and the -o StrictHostKeyChecking=no) is so the server
# is added to the list of known servers
scp -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
- name: Main tests
shell: bash -l {0}
Expand Down
10 changes: 10 additions & 0 deletions qiita_pet/support_files/doc/source/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,16 @@ specially on:
Qiita will not be able to process your samples.


Software and Data Licensing
---------------------------

Qiita's software and its plugins can be found here: https://github.com/qiita-spots/. They are
distributed with a BSD 3-Clause License. When you use the `Qiita WebServer <https://qiita.ucsd.edu/>`__,
you are adhering to the `Qiita Terms <https://qiita.ucsd.edu/iframe/?iframe=qiita-terms>`__. All data
downloaded from `qiita.ucsd.edu <https://qiita.ucsd.edu/>` and redbiom, including raw and processed data
and metadata, are distributed under the BSD 3-Clause License.


How to cite Qiita?
------------------

Expand Down
10 changes: 6 additions & 4 deletions qiita_ware/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,17 @@ def _ssh_session(p_url, private_key):

# step 1: both schemes require an SSH connection
ssh = SSHClient()
ssh.load_system_host_keys()
ssh.set_missing_host_key_policy(AutoAddPolicy)

# step 2: connect to fileserver
key = RSAKey.from_private_key_file(private_key)
# we need pkeys now based on
# https://github.com/paramiko/paramiko/issues/1961
pkeys = dict(pubkeys=['rsa-sha2-256', 'rsa-sha2-512'])
print('++++++++++++++++')
print('++++++++++++++++')
print(f'{hostname}, {port}, {username}')
print('++++++++++++++++')
ssh.connect(hostname, port=port, username=username,
pkey=key, look_for_keys=False, disabled_algorithms=pkeys)
pkey=key, look_for_keys=False)
return ssh
else:
raise ValueError(
Expand Down
5 changes: 5 additions & 0 deletions qiita_ware/test/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ def test_list_scp_nonexist_key(self):
def test_list_scp(self):
kpath = join(self.temp_local_dir, 'tmp-key')
copyfile(self.test_ssh_key, kpath)
print('==========')
print('==========')
print(self.test_ssh_key, kpath)
print('scp://runner@localhost:' + self.remote_dir_path)
print('==========')
read_file_list = list_remote(
'scp://runner@localhost:'+self.remote_dir_path, kpath)
self.assertCountEqual(read_file_list, self.exp_files)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
'networkx', 'humanize', 'wtforms<3.0.0', 'nltk',
'openpyxl', 'sphinx-bootstrap-theme', 'Sphinx<3.0',
'gitpython', 'redbiom', 'pyzmq', 'sphinx_rtd_theme',
'paramiko<2.9', 'seaborn', 'matplotlib', 'scipy<1.8',
'paramiko', 'seaborn', 'matplotlib', 'scipy<1.8',
'nose',
'flake8', 'six', 'qiita-files @ https://github.com/'
'qiita-spots/qiita-files/archive/master.zip', 'mock',
Expand Down

0 comments on commit 9dc3cff

Please sign in to comment.