在阿里云服务器添加ssh,方便远程登录
【代码】在阿里云服务器添加ssh,进行项目发布。
·
前言:

添加ssh密钥步骤:
chmod 700 .ssh #创建ssh
cd .ssh
chmod 700 authorized_keys #添加权限密钥
vim authorized_keys #编辑密钥 添加本地电脑ssh密钥
vim /etc/ssh/sshd_config #更改ssh配置文件
配置文件
# no default banner path
#Banner none
# Allow client to pass locale environment variables
AcceptEnv LANG LC_*
# override default of no subsystems
Subsystem sftp /usr/lib/openssh/sftp-server
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server
UseDNS no
AddressFamily inet
SyslogFacility AUTHPRIV
PermitRootLogin yes
PasswordAuthentication yes
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐

所有评论(0)