存档

文章标签 ‘ssh服务端; ubuntu ssh’

Ubuntu下 SSH服务端启动

2009年12月23日

在终端使用命令测试:

ssh localhost

如果出现以下错误,则很可能是因为还没有安装ssh-server:

ssh: connect to host localhost port 22: Connection refused

安装SSH-server:

sudo apt-get install openssh-server

启动SSH-Server

sudo /etc/init.d/ssh start

启动完成后 用ssh localhost 命令测试

Ubuntu