ubuntu 安装ssh服务

1、检查本机是否安装了ssh服务

使用命令:ssh localhost

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

ssh: connect to host localhost port 22: Connection refused

 

表明还没安装ssh服务。

 

2、安装SSH-server:

sudo apt-get update

sudo apt-get install openssh-server

 

3、启动SSH-Server

sudo /etc/init.d/ssh start

 

 

你可能感兴趣的:(ubuntu 安装ssh服务)