cytomine/Cytomine-bootstrap

SSH keys sometimes not recognized

geektortoise opened this issue · 0 comments

In some specific case, the default ssh keys cannot be used to run a job.
When trying to run a job, a log indicates that "cannot OpenChannel() on null object"

In fact, the SSH connection between software_router and slurm cannot be made.

You can test with
sudo docker exec -it software_router bash
ssh cytomine@slurm
If the ssh process ask you a password, the keys are not considered as valid.

Solution : Regenerate pair of keys.
cd Cytomine-bootstrap/configs/software_router/keys
rm *
ssh-keygen -t rsa -m PEM
Enter file in which to save the key : ./ssh_key

and run restart script