Issues in SSH communication between two cuquantum containers #131
-
Hi, Question related to this and #36 and #37 (initiated by me but couldn't continue). I am trying to execute a quantum circuit on two nodes having cuquantum (23.10) installed for which I need SSH communication.
Currently working on master node:
Following mentioned links, I created config and hostfile files This is my config file for master node which contains aliases of worker_1 node
Here is hostfile content, not sure need to add ip address in it but as in openmpi I use to add. I am executing rest of the commands as it is
and then
I am getting access error even cuquantum user is owner of .ssh directory.
I open docker terminal and found permissions:
permissions are same 600. I however continued, there are some errors in sed commands mentioned in #37 answer
I made changes with interactive session in sshd_config file and additionally uncommented HostKey configuration. Following changes have been done here
Now at the last step of ssh configuration, when I execute restart command, it gives me following error:
I tried to start the service with sudo interactively, it didn't throw error but service still doesn't start.
Any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The links I was using had some minor mistakes regarding permission settings: I corrected .ssh directory permission with this line
In ./config file, made following changes: *no underscores in name
To start ssh, I use
Strange thing is when I check status of sshd its still say not running but ssh connection works fine between both dockers. |
Beta Was this translation helpful? Give feedback.
The links I was using had some minor mistakes regarding permission settings:
I corrected .ssh directory permission with this line
sudo docker exec -i master bash -c 'chmod -R 600 /home/cuquantum/.ssh/*'
In ./config file, made following changes:
*no underscores in name
*port different than 22 to avoid conflict with host ssh
*path of private key in IdentityFile
To start ssh, I use
/usr/sbin/sshd
Strange thing is when I check status of sshd its still say not running but ssh connection works fine between both dockers.