Ubuntu上安装启动SSH Server

在Ubuntu终端使用命令测试:

ssh localhost

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

ssh: connect to host localhost port 22: Connection refused

安装SSH-server:

sudo apt-get update

sudo apt-get install openssh-server openssh-client

启动/停止/重启SSH-Server

start/stop/restart ssh

猜你喜欢

转载自blog.csdn.net/wo_xiao_lin/article/details/8649420
今日推荐