V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
sudosu
V2EX  ›  macOS

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

  •  
  •   sudosu · 163 天前 · 1870 次点击
    这是一个创建于 163 天前的主题,其中的信息可能已经有所发展或是发生改变。
    15 条回复    2023-11-17 13:02:39 +08:00
    Bantes
        2
    Bantes  
       163 天前
    (base) ~  cat /etc/ssh_config
    cat: /etc/ssh_config: No such file or directory
    sudosu
        3
    sudosu  
    OP
       163 天前
    sudosu
        4
    sudosu  
    OP
       163 天前
    用 VNC 连接甲骨文控制台一直 channel 2: open failed: administratively prohibited: open failed 一直报错。。。
    Love4Taylor
        5
    Love4Taylor  
       163 天前
    hash
        6
    hash  
       163 天前   ❤️ 1
    ssh_config 你得明白你自己以前配置了什麼,
    直接拷貝別人的是什麼操作?...
    nagisaushio
        7
    nagisaushio  
       163 天前 via Android   ❤️ 1
    打错了吧 /etc/ssh/ssh_config
    Xusually
        8
    Xusually  
       163 天前 via iPhone   ❤️ 1
    op 你给的路径不对
    是/etc/ssh/ssh_config
    ScotGu
        9
    ScotGu  
       163 天前
    真得不是
    /etc/ssh/sshd_config
    么?
    Showfom
        10
    Showfom  
       163 天前   ❤️ 1
    macOS 下默认的 /etc/ssh/sshd_config 文件都是带 # 的注释,除了这行

    Include /etc/ssh/sshd_config.d/*

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

    AuthorizedKeysFile .ssh/authorized_keys
    sinxccc
        12
    sinxccc  
       163 天前   ❤️ 1
    sudosu
        13
    sudosu  
    OP
       163 天前
    @Love4Taylor
    @hash
    @nagisaushio
    @Xusually
    @ScotGu
    @Showfom
    @sinxccc 多谢,多谢🙏,是我路径打错了,系统数据有点多,索性直接重装了,连接甲骨文 VNC 控制台的时候要添加 Host *
    HostKeyAlgorithms +ssh-rsa
    PubkeyAcceptedKeyTypes +ssh-rsa
    就可以了,然后我看了下,确实没啥重要的配置在这文件里面🙃
    linqi
        14
    linqi  
       162 天前
    op 甲骨文 vps 怎么注册成功的
    julyclyde
        15
    julyclyde  
       162 天前
    客户端配置文件无所谓吧,没什么正经内容
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1115 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 18:12 · PVG 02:12 · LAX 11:12 · JFK 14:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.