Fedora 25: install / start / enable ssh server

好长时间不用fedora了,最后一个版本是fedora17,然而从18开始就已转向dnf,偶然按了个fedora,竟然发现这货,虽然已不鲜,还是尝了尝, try and gossip!!!

Install

To install the openssh-server, you need to install the openssh-server package:

sudo dnf install -y openssh-server

Start

To start the sshd daemon (openssh-server) in the current session:

sudo systemctl start sshd.service

Stop

To stop the active (if any) sshd daemon in the current session:

sudo systemctl stop sshd.service

Enable

To configure the sshd daemon to start automatically at boot time:

sudo systemctl enable sshd.service

You will get an output similar to this:

ln -s '/usr/lib/systemd/system/sshd.service' '/etc/systemd/system/multi-user.target.wants/sshd.service'

Disable

To configure the sshd daemon to stop automatic initialization at boot time:

sudo systemctl disable sshd.service

ps 现在越来越懒了,整篇操作都是抄来的,原文在这里Fedora 25: install / start / enable ssh server – Bytefreaks.net

发表评论

电子邮件地址不会被公开。 必填项已用*标注