V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
MasterCai
V2EX  ›  程序员

Iterm2 shell integration 使用 download with scp 如何自定义 ssh 参数?

  •  
  •   MasterCai · 1 天前 · 477 次点击

    Iterm2 shell integration 使用 download with scp 如何自定义 ssh 参数? 场景是这样的,我想使用 download with scp 直接从服务器下载文件,但是默认读取的 hostname 和 ssh 连接的 port 不对导致无法下载,这两个参数是否可以自己配置?

    4 条回复    2025-03-18 18:42:15 +08:00
    NessajCN
        1
    NessajCN  
       1 天前
    我没用过 iterm2 shell integration
    但我知道 ssh 的配置都在 ~/.ssh/config 里,并且 scp 都是直接读 ssh 的这些设置的
    你可以试试改这个配置
    383394544
        2
    383394544  
       1 天前 via iPhone
    scp 可以指定參數
    skygod
        3
    skygod  
       1 天前
    Aixtuz
        4
    Aixtuz  
       1 天前
    .zshenv 中 export iterm2_hostname=别名
    与 ~/.ssh/config 中别名一致

    是指的这个么?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   997 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 20:48 · PVG 04:48 · LAX 13:48 · JFK 16:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.