我用 禁用了防火墙sudo ufw disable,我可以 ping 服务器,服务器可以 ping 我,但我不能ssh:
root@ubuntu:/home/acme# ssh 192.168.1.6 ssh: connect to host
192.168.1.6 port 22: Connection refused
Run Code Online (Sandbox Code Playgroud)
我删除了 ssh 并重新安装:
sudo apt-get remove openssh-client openssh-server
sudo apt-get install openssh-client openssh-server
Run Code Online (Sandbox Code Playgroud)
但是 ssh 仍然无法正常工作,并且出现错误
拒绝连接
我该如何解决这个问题?
以下是我迄今为止尝试过的其他一些东西:
root@ubuntu:/home/acme# sudo service ssh start
start: Job is already running: ssh
root@ubuntu:/home/acme# ps aux | grep ssh
acme 6548 0.0 0.0 12576 320 ? Ss 04:09 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session gnome-session --session=ubuntu
root 22219 0.0 0.1 50040 2852 ? Ss 05:10 0:00 /usr/sbin/sshd -D
root 22277 0.0 0.0 8116 896 pts/0 S+ 05:17 0:00 grep --color=auto ssh
Run Code Online (Sandbox Code Playgroud)
为未来的访客更新
在服务器上删除并重新安装 ssh 对我有用:
sudo apt-get remove openssh-client openssh-server
sudo apt-get install openssh-client openssh-server
Run Code Online (Sandbox Code Playgroud)
在服务器上删除并重新安装 ssh对我有用:
我的主节点是:192.168.1.6
我的客户端是:192.168.1.4
在主人身上我这样做了:
sudo apt-get remove openssh-client openssh-server
sudo apt-get install openssh-client openssh-server
Run Code Online (Sandbox Code Playgroud)
现在从我的客户那里我这样做了:
root@ubuntu:/home# ssh 192.168.1.6
root@192.168.1.6's password:
Welcome to Ubuntu 12.04.3 LTS (GNU/Linux 3.8.0-29-generic i686)
* Documentation: https://help.ubuntu.com/
131 packages can be updated.
67 updates are security updates.
Last login: Thu Oct 24 15:18:34 2013 from ubuntu.local
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
58819 次 |
| 最近记录: |