is it possible to use ssh in pod?

别说谁变了你拦得住时间么 提交于 2019-12-02 07:13:42

问题


I made hadoop image based on centos using dockerfile. There are 4 nodes. I want to configure cluster using ssh-copy-id. But an error has occurred.

ERROR: ssh: connect to host [ip] port 22: Connection refused

How can I solve this problem?


回答1:


ssh follows a client-server architecture. So, the openssh-server has to be installed in the container. Now ssh-copy-id and other commands should run if the ip address is routable.



来源:https://stackoverflow.com/questions/52809057/is-it-possible-to-use-ssh-in-pod

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!