root@ubuntu:~/work/gittest# ps -ef|grep ssh
shilei 2425 2390 0 18:08 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session gnome-session --session=ubuntu
缺少sshd,说明ssh服务没有启动或者没有安装
root@ubuntu:~/work/gittest# apt-get install openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
thunderbird-globalmenu
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
openssh-client ssh-import-id
Suggested packages:
libpam-ssh keychain monkeysphere openssh-blacklist openssh-blacklist-extra
rssh molly-guard
The following NEW packages will be installed:
openssh-server ssh-import-id
The following packages will be upgraded:
openssh-client
1 upgraded, 2 newly installed, 0 to remove and 291 not upgraded.
Need to get 1,288 kB of archives.
After this operation, 882 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
...
root@ubuntu:~/work/gittest# ps -ef|grep ssh
shilei 2425 2390 0 18:08 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session gnome-session --session=ubuntu
root 4271 1 0 18:36 ? 00:00:00 /usr/sbin/sshd -D
root 4312 3482 0 18:36 pts/1 00:00:00 grep --color=auto ssh
root@ubuntu:~/work/gittest#
shilei 2425 2390 0 18:08 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session gnome-session --session=ubuntu
缺少sshd,说明ssh服务没有启动或者没有安装
root@ubuntu:~/work/gittest# apt-get install openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
thunderbird-globalmenu
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
openssh-client ssh-import-id
Suggested packages:
libpam-ssh keychain monkeysphere openssh-blacklist openssh-blacklist-extra
rssh molly-guard
The following NEW packages will be installed:
openssh-server ssh-import-id
The following packages will be upgraded:
openssh-client
1 upgraded, 2 newly installed, 0 to remove and 291 not upgraded.
Need to get 1,288 kB of archives.
After this operation, 882 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
...
root@ubuntu:~/work/gittest# ps -ef|grep ssh
shilei 2425 2390 0 18:08 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session gnome-session --session=ubuntu
root 4271 1 0 18:36 ? 00:00:00 /usr/sbin/sshd -D
root 4312 3482 0 18:36 pts/1 00:00:00 grep --color=auto ssh
root@ubuntu:~/work/gittest#