📜  如何在端口 22 manjaro 上打开 ssh - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:44.090000             🧑  作者: Mango

代码示例1
//For me I only needed to do steps 2,4 and 5 in that order.

// 1.Install openssh if needed
pacman -S openssh

// 2.Verify SSH service status
systemctl status sshd.service

// 3.Edit SSH daemon config file if needed
nano /etc/ssh/sshd_config

// 4.Enable SSH service
systemctl enable sshd.service

// 5.Start SSH service
systemctl start sshd.service

// 6.Verify SSH service is working properly
// This is where you attempt to SSH into the server you just set up
// to see if it actually works