Ubuntu常用命令记录
本篇主要记录 Ubuntu 安装软件的过程 开启root账号ssh12345678910su root# 写入证书cat ~/.ssh/id_rsa.pub | tee /root/.ssh/authorized_keyschmod 600 /root/.ssh/authorized_keys# 启用root登录, 禁用密码登录, 启用证书登录sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_configsed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_configsed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/' /etc/ssh/sshd_config# 重启sshsystemctl restart ssh ...