我是靠谱客的博主 羞涩香氛,这篇文章主要介绍Ubuntu 18.04 错误 ssh: connect to host 192.168.0.105 port 22: Connection refused,现在分享给大家,希望可以做个参考。
➜
~ git clone git@192.168.0.105:/srv/demo/demo.git
正克隆到 'demo'...
ssh: connect to host 192.168.0.105 port 22: Connection refused
fatal: 无法读取远程仓库。
请确认您有正确的访问权限并且仓库存在。
启动 ssh-server
sudo /etc/init.d/ssh -start
如果提示:
sudo: /etc/init.d/ssh:找不到命令
安装 openssh-server 即可解决
sudo apt-get install openssh-server
最后
以上就是羞涩香氛最近收集整理的关于Ubuntu 18.04 错误 ssh: connect to host 192.168.0.105 port 22: Connection refused的全部内容,更多相关Ubuntu内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复