Arch Linux ARM如何开启SSH
Arch Linux ARM如何开启SSH

Arch Linux ARM如何开启SSH

# 安装 OpenSSH 软件包

sudo pacman -S --noconfirm openssh

# 备份原始 SSH 配置文件

sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak

# 编辑 SSH 配置文件以允许 root 登录和密码身份验证

sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config

sudo sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config

# 启动 SSH 服务并放到后台运行

sudo /usr/bin/sshd -D &

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

Title - Artist
0:00