6

使用 Vim 作为 SSH 客户端

 1 year ago
source link: https://wsdjeg.spacevim.org/use-vim-as-ssh-client/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

使用 Vim 作为 SSH 客户端


在 Windows 下之前一直使用 xshell 作为 ssh 客户端。自从 Neovim 和 Vim 都增加了内置终端后,于是就把 xshell 这个软解卸载了。使用 Neovim 内置的函数来实现 SSH 连接。

首先,需要启用 SpaceVim 的 ssh 模块:

[[layers]]
    name = 'ssh'
  • ssh_port: 设置服务器的 ssh 端口
  • ssh_address: 设置服务器的地址或者 ip
  • ssh_user: 设置默认的用户名
[[layers]]
    name = 'ssh'
    ssh_command = 'D:\Programs\Git\usr\bin\ssh.exe'
    ssh_user = 'root'
    ssh_address = '192.168.1.10'
    ssh_port = '8097'
快捷键 功能描述
SPC S o 打开 ssh 窗口

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK