全球主机交流论坛

标题: 阿里云服务器咋配置,求求各位好哥哥了 [打印本页]

作者: swiftslee    时间: 2021-8-21 15:57
标题: 阿里云服务器咋配置,求求各位好哥哥了
服务器:CentOS 7.3
在远程连接中,建立了
su git
mkdir ~/.ssh
vim ~/.ssh/authorized_keys
然后把公钥复制进去保存
chmod 600 /home/git/.ssh/authorized_keys
chmod 700 /home/git/.ssh
给权限后,本地git测试ssh拒绝连接

debug1: hostkeys_find_by_key_hostfile: hostkeys file /c/Users/11093/.ssh/known_hosts2 does not exist
debug1: hostkeys_find_by_key_hostfile: hostkeys file /etc/ssh/ssh_known_hosts does not exist
debug1: hostkeys_find_by_key_hostfile: hostkeys file /etc/ssh/ssh_known_hosts2 does not exist
The authenticity of host '120.27.224.88 (120.27.224.88)' can't be established.
ED25519 key fingerprint is SHA256:9jbVGN7tr6E9/+7X7JJztxcVcFgNUAEqHdrnHB+F8rw.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])?

作者: iiii.im    时间: 2021-8-21 15:59
不懂绑定              
作者: ApkB    时间: 2021-8-21 16:08
配置git?不懂,楼下大佬来
作者: 我有一个梦想    时间: 2021-8-21 17:36
是否开启了密钥登录,本地密钥权限设置了没,还有密钥对应的用户
作者: swiftslee    时间: 2021-8-21 18:08
我有一个梦想 发表于 2021-8-21 17:36
是否开启了密钥登录,本地密钥权限设置了没,还有密钥对应的用户

没有啊
作者: 二氧化碳    时间: 2021-8-21 18:13
提示: 作者被禁止或删除 内容自动屏蔽
作者: swiftslee    时间: 2021-8-21 18:28
二氧化碳 发表于 2021-8-21 18:13
sshd_config要开启秘钥登录

应该怎么设置,麻烦指点一下,小白不会
作者: 二氧化碳    时间: 2021-8-21 20:19
提示: 作者被禁止或删除 内容自动屏蔽
作者: programer    时间: 2021-8-21 22:32
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 全球主机交流论坛 (https://sunk.eu.org/) Powered by Discuz! X3.4