Objective: to complete the project on the host A docker container deployment, migration to host B, and the host B maintenance updates for future projects,
Question: the containers of SSH link through the export/import after transplantation to host B, originally opened in A host and port in no B randomly assigned new port, lead to can't via SSH maintenance updates the content of the container, could you tell me who encountered this problem, have what good method?
CodePudding user response:
Two questions ha:1, randomly assigned port problem, can through the -p 2200:22 such parameters to define out at boot time;
2, you can't access is also may be caused by your service has not started;
Don't thank!
CodePudding user response:
It's because your/etc/SSHD/sshd_config listen the IP is not modified, the modified restart the SSHD service with respect to OK