无法通过 ssh 连接到本地主机 [英] Cannot ssh to localhost

查看:66
本文介绍了无法通过 ssh 连接到本地主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试查看 ssh 是否在 Ubuntu 11.04 上正确配置:

I am trying to see if ssh is properly configured on Ubuntu 11.04:

  ashish@ubuntu:~$ ssh localhost
  ssh: connect to host localhost port 22: Connection refused
  ashish@ubuntu:~$

我从这里做什么?

推荐答案

尝试:

sudo apt-get install openssh-server

很可能没有安装 ssh 服务器,因为默认情况下只安装了客户端.

It's most likely that the ssh server is not installed as only the client is installed by default.

这篇关于无法通过 ssh 连接到本地主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆