Skip to content

Issues in SSH communication between two cuquantum containers #131

Closed Answered by intelligi123
intelligi123 asked this question in Q&A
Discussion options

You must be logged in to vote

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

Host worker
     Hostname 192.168.0.29
     Port 2223
     IdentityFile ~/.ssh/id_rsa
     StrictHostKeyChecking no
     UserKnownHostsFile=/dev/null 

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by intelligi123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant