Linux启用ssh远程连接

启用ssh远程连接

  • 启动并设置ssh服务开机启动
systemctl start sshd.service
systemctl enable sshd.service
  • 编辑文件/etc/ssh/sshd_config
PermitRootLogin yes  # 允许root远程登录
  • 关闭DNS验证
UseDNS no
GSSAPIAuthentication no

  • 如果没有关闭DNS,可能导致远程连接时速度比较慢。
发布了42 篇原创文章 · 获赞 5 · 访问量 2945

猜你喜欢

转载自blog.csdn.net/Function_RY/article/details/103705421