ubuntu 配置ssh连接
一般Ubuntu都会默认安装openssh-client,但是没有安装openssh-server。
安装ssh服务器
sudo apt install openssh-server
安装ssh客户端
sudo apt install openssh-client
利用Ubuntu自带的ufw 修改防火墙状态
sudo ufw enable #开启防火墙
sudo ufw allow ssh #打开传输ssh的端口(默认22)
设置ssh server开机启动
sudo systemctl enable ssh
修改配置文件
sudo vi /etc/ssh/ssh_config
重启ssh服务
sudo /etc/init.d/ssh restart
本文来自博客园,作者:空唤晴,转载请注明原文链接:https://www.cnblogs.com/konghuanqing/p/16327362.html