腾讯轻量云root账户ssh登录 发表于 2022-02-10 分类于 云服务器 控制台进入主机详细信息 网页一键登录 设置 root 密码1sudo passwd root 切换 root 用户1su root 支持 root 用户 密码登录123456echo PermitRootLogin yes >> /etc/ssh/sshd_configecho PasswordAuthentication yes >> /etc/ssh/sshd_configecho UseDNS no >> /etc/ssh/sshd_config # 优化ssh第一次连接速度echo ClientAliveInterval 30 >> /etc/ssh/sshd_config # 优化ssh登录后连接检测echo ClientAliveCountMax 86400 >> /etc/ssh/sshd_config # 优化ssh登录后连接检测service ssh restart 客户端使用ssh客户端常规登录