0

server我在尝试将 repository.git 文件夹从一台机器(表现为)克隆到另一台机器(表现为 )时收到错误clientTerminal commands我尝试过的和收到的响应如下所示。

sonya@sonya-desktop:~/workspace$ git clone sonya@192.168.1.153:/home/user153/remote_repository.git
Cloning into 'remote_repository'...
ssh: connect to host 192.168.1.153 port 22: Connection refused
fatal: The remote end hung up unexpectedly

我也试过了SSH。下面Terminal commands给出了收到的回复。在这两种情况下,我都面临同样的问题。

sonya@sonya-desktop:~/workspace$ git clone ssh://sonya@192.168.1.153/home/user153/remote_repository.git
Cloning into 'remote_repository'...
ssh: connect to host 192.168.1.153 port 22: Connection refused
fatal: The remote end hung up unexpectedly

的解释Terminal commands

sonya:Git username我已经在我的服务器机器上创建了。

192.168.1.153:IP服务器机器

/home/user153/remote_repository.git:Path服务器机器中的 remote_repository.git(git 文件夹)。

任何人请帮助。在此先感谢。

4

1 回答 1

0

使用which sshd. 如果命令没有给出任何路径sshd。你必须安装这个。为了安装open ssh在你的服务器机器上使用sudo apt-get install openssh-server

于 2013-11-06T06:07:41.130 回答