0
点赞
收藏
分享

微信扫一扫

【赏】C++ 实现SMTP服务器

互联网码农 2023-05-31 阅读 65
sshlinuxbash

Ubuntu参考我这篇:虚拟机里安装ubuntu-23.04-beta-desktop-amd64,开启SSH(换源、备份),配置中文以及中文输入法等

一、过程

1、检测是否安装了openssh-server

$ rpm -qa | grep openssh-serveropenssh-server-7.9p1-5.fc30.x86_64

2、如果上面没有输出结果,则需要手动安装open-server

$ sudo dnf install openssh-server

3、启用sshd服务

$ sudo systemctl enable sshd

4、启动sshd服务

$ sudo systemctl start sshd

5、查看sshd的启动状态

$ sudo systemctl status sshd

6、查看ssh的listen

 $sudo ss  -lt

7、使用客户端软件连接即可

二、实际执行截图

在这里插入图片描述

三、补充Fedora安装、配置、启用SSH的相关命令

$ rpm -qa | grep openssh-server
$ sudo dnf install -y openssh-server
$ sudo systemctl status sshd
$ sudo ss -lt
$ sudo systemctl start sshd.service
$ sudo systemctl stop sshd.service
$ sudo systemctl disable sshd.service

四、参考资料

mark:如何使用FileZilla连接虚拟机上的Fedora
How to install, start and connect to SSH Server on Fedora Linux
如何在Linux中安装、配置和启用SSH服务?
如何在Linux中安装、配置和启用SSH服务?【原文】

举报

相关推荐

0 条评论