Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

centos7如何部署ssh #93

Closed
616252396 opened this issue Jun 10, 2022 · 6 comments
Closed

centos7如何部署ssh #93

616252396 opened this issue Jun 10, 2022 · 6 comments
Labels
duplicate This issue or pull request already exists

Comments

@616252396
Copy link

容器的秘钥已经部署。
服务器的ssh端口改成23。
服务器的22端口映射到了容器的22端口。
强制改服务器的ssh提示失败。
怎么配置,让可以使用ssh克隆代码?

@shishirui
Copy link
Contributor

服务器的ssh端口改成23失败了吗?请提供失败具体报错提示信息。成功更改后,应该就可以直接通过ssh来clone代码了。

@616252396
Copy link
Author

服务器的ssh端口改成功了,我配置了域名,http拉取代码可以
在服务器本地拉取失败 git clone [email protected]:wai_bao/git.git
ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
最终想实现在本地可以ssh操作

@shishirui
Copy link
Contributor

请检查你是否配置了正确的 ssh key,配置的地址在 http://[你的域名或IP]/settings/sshkey 。

@616252396
Copy link
Author

跟这个是一个问题
#94

@cubicwork
Copy link
Contributor

@616252396 请参照我在 #94 的回复。尝试登录 docker 容易,并重启 SSH 服务。如果问题不能解决请在 #94 问题中继续回复。

@cubicwork cubicwork added the duplicate This issue or pull request already exists label Jun 13, 2022
@616252396
Copy link
Author

可以了,感谢感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants