linux开发板作为服务端,所以要修改sshd_config文件

注:不是修改ssh_config文件

修改步骤:

  1. 进入/etc/ssh目录:cd /etc/ssh
  2. 备份sshd_config文件(可选,用于改错恢复):cp sshd_config sshd_config_back
  3. 修改sshd_config文件3个配置:vi sshd_config
  4.  重启sshd ,也可以断电重启板子:/etc/init.d/sshd restart

修改sshd_config文件3个配置

  • PermitRootLogin 

  • GatewayPorts

  • PasswordAuthentication

PermitRootLogin :允许root账户ssh登录​ 

删除 # 号,把prohibit-password 改成 yes

GatewayPorts:允许远程主机连接本地的转发端口

删除 # 号,把 no 改成 yes

PasswordAuthentication:允许密码验证 

删除 # 号

​​​​​​​

​​​​​​​​​​​​​​

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐