5

#ubuntu 开启ssh服务

 3 years ago
source link: https://xmanyou.com/ubuntu-enable-ssh/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
10 April 2021 / linux

#ubuntu 开启ssh服务

新装的Ubuntu 有时候并没有自动安装ssh服务。

尝试用ssh连接时,会报错:

ssh: connect to host 192.168.1.xx port 22: Connection refused

这时候,需要手动安装。

sudo apt update
sudo apt install openssh-server

安装完后默认启动ssh服务,如果没有的话,可以手动开启。

sudo systemctl enable --now ssh
sudo systemctl start ssh
sudo systemctl status ssh

阿斌

Read more posts by this author.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK