求个文件,不小心删了 Mac 下 /etc/ssh_config 文件,哪位好兄弟拷一份给我

174 天前
 sudosu
1889 次点击
所在节点    macOS
15 条回复
Love4Taylor
174 天前
Bantes
174 天前
(base) ~  cat /etc/ssh_config
cat: /etc/ssh_config: No such file or directory
sudosu
174 天前
sudosu
174 天前
用 VNC 连接甲骨文控制台一直 channel 2: open failed: administratively prohibited: open failed 一直报错。。。
Love4Taylor
174 天前
hash
174 天前
ssh_config 你得明白你自己以前配置了什麼,
直接拷貝別人的是什麼操作?...
nagisaushio
174 天前
打错了吧 /etc/ssh/ssh_config
Xusually
174 天前
op 你给的路径不对
是/etc/ssh/ssh_config
ScotGu
174 天前
真得不是
/etc/ssh/sshd_config
么?
Showfom
173 天前
macOS 下默认的 /etc/ssh/sshd_config 文件都是带 # 的注释,除了这行

Include /etc/ssh/sshd_config.d/*

所以你直接新建一个文件然后写入就是了
Showfom
173 天前
@Showfom #10 哦还有一行

AuthorizedKeysFile .ssh/authorized_keys
sinxccc
173 天前
sudosu
173 天前
@Love4Taylor
@hash
@nagisaushio
@Xusually
@ScotGu
@Showfom
@sinxccc 多谢,多谢🙏,是我路径打错了,系统数据有点多,索性直接重装了,连接甲骨文 VNC 控制台的时候要添加 Host *
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
就可以了,然后我看了下,确实没啥重要的配置在这文件里面🙃
linqi
173 天前
op 甲骨文 vps 怎么注册成功的
julyclyde
173 天前
客户端配置文件无所谓吧,没什么正经内容

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/992564

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX