Livid
277.99D
569.66D
V2EX  ›  macOS

发现 macOS 里的 sftp 不会 tab 自动补全,但是 Windows 里的就可以

  •  
  •   Livid ·
    PRO
    · Dec 20, 2019 · 4697 views
    This topic created in 2341 days ago, the information mentioned may be changed or developed.
    这个是因为版本原因还是我少配置了什么东西呢?

    macOS 里的 sftp 是系统自带的。

    Windows 里的 sftp 应该是跟着 Git for Windows 安装的。
    5 replies    2020-01-05 15:24:15 +08:00
    Livid
        1
    Livid  
    MOD
    OP
    PRO
       Dec 20, 2019
    目前找到的一个解决方法:

    brew install openssh

    然后在 .zshrc 加入:

    export PATH="/usr/local/opt/openssh/bin:$PATH"
    gesse
        2
    gesse  
       Dec 20, 2019
    不同平台的实现差异太正常了。

    最近我发现开源、非开源的实现,linux 服务器上的 socks5 的 udp associate 就没几个能用的。
    lucifer9
        3
    lucifer9  
       Dec 20, 2019
    都用 brew 了,直接上 lftp 吧
    gesse
        4
    gesse  
       Dec 20, 2019
    @lucifer9
    确实,lftp sftp://remote_server 非常方便
    Kobayashi
        5
    Kobayashi  
       Jan 5, 2020
    自带的 sftp 就是没有这个功能。PATH 添加 `/usr/local/bin` 即可。Homebrew 安装的 ssh 可能有点兼容性问题,开 X 转发每次都会报错"Warning: No xauth data; using fake authentication data for X11 forwarding.",换回自带 ssh 没有此问题。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1774 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 16:17 · PVG 00:17 · LAX 09:17 · JFK 12:17
    ♥ Do have faith in what you're doing.