跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 阿里云服务器咋配置,求求各位好哥哥了
未分類
21 8 月 2021

阿里云服务器咋配置,求求各位好哥哥了

swiftslee 大佬有话说 :

阿里云服务器咋配置,求求各位好哥哥了

服务器: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/)?

iiii.im 大佬有话说 :

不懂绑定            

ApkB 大佬有话说 :

配置git?不懂,楼下大佬来

我有一个梦想 大佬有话说 :

是否开启了密钥登录,本地密钥权限设置了没,还有密钥对应的用户

swiftslee 大佬有话说 :

我有一个梦想 大佬有话说 : 2021-8-21 17:36
是否开启了密钥登录,本地密钥权限设置了没,还有密钥对应的用户

没有啊

二氧化碳 大佬有话说 :

sshd_config要开启秘钥登录

swiftslee 大佬有话说 :

二氧化碳 大佬有话说 : 2021-8-21 18:13
sshd_config要开启秘钥登录

应该怎么设置,麻烦指点一下,小白不会:'(

二氧化碳 大佬有话说 :

swiftslee 大佬有话说 : 2021-8-21 18:28
应该怎么设置,麻烦指点一下,小白不会

https://www.jianshu.com/p/fba14eadf6be

你看第六步那里,改一下配置文件

programer 大佬有话说 :

有什么是宝塔做不到的?

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具