gpt4 book ai didi

ssh - iTerm2:使用CMD + click通过SSH快速下载

转载 作者:行者123 更新时间:2023-12-02 13:50:21 25 4
gpt4 key购买 nike

iTerm2允许您单击链接(CMD + click)并快速打开它。但是,在使用SSH时,此操作无效。是否可以启用此功能,以便我可以CMD +单击文件,它会自动下载到本地计算机上的文件夹中?

谢谢!

最佳答案

实际上,安装了Shell Integration后,这是可能的。请注意,Shell Integration将需要安装在您要插入的任何服务器上,而不仅是本地计算机上。从this link:

iTerm has recently introduced a feature called Shell Integration. Using this feature, we can upload and download files conveniently directly from iTerm 2. Drag a file into the window when pressing Option Key uploads the file to the remote ssh connection. Right-click on a file using ls command will bring up a context list containing downloading the file.

  1. Click “iTerm2->Install Shell Integration” when sshing into the remote server.
  2. Ensure the server has a correct FQDN as hostname and can be connected through this hostname. (You can use hostname -f to check it)
  3. If you’re using private key authentication, then you should have id_rsa in your .ssh directory. However, you should also put id_rsa.pub in your .ssh directory to use this feature.

抱歉,您的回答很晚,但是我只是想做同样的事情,并且遇到了您的问题。我以为一旦找到解决方案,我就会发表我的发现。

关于ssh - iTerm2:使用CMD + click通过SSH快速下载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43453419/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com