Ubuntu安装启动SSH服务器

安装openssh-server 

sudo apt-get install openssh-server

如果是没有安装SSH-server

当你输入:ssh localhost时就会出错

默认端口是22--记住哦

没有安装就按装了:

sudo apt-get install openssh-server openssh-client

启动SSH-server

sudo /etc/init.d/ssh start

ok----结束了

你可能感兴趣的:(Ubuntu安装启动SSH服务器)