Forked from SublimeREPL. (Original Readme)
The purpose of this fork is to enable ssh repl
This is not a terminal emulator, it just pushes the text you type through a subprocess running ssh then reads the response back.
- Any interactive terminal actions will not work. eg:
- password entry
ctrl+rreverse searchvimfor interactive file editing
-
paramiko_intercept_viwill intercept you typingvi ./folder/file_to_edit.txtand download the file, to be edited locally, then upload on save. -
For subprocess & ssh repls, ansi codes are stripped from the output and ignored.
emulate_ansi_csiwill enable interpretting ansi control sequences like carriage return, line clear and cursor moving (limited support!) -
filter_ascii_color_codesset tofalsewill enable displaying terminal color codes (limited support!) -
press
shift+taborshift+spaceto autocomplete
- This method assumes you have ssh private keys
.pemto connect to the server as password entry will not work! - Before connecting to a server for the first time
- you must ssh into the server using a regular terminal and type yes when
the authenticity of host can't be establishedmessage appears to add the server to yourknown_hostsOR - open
C:\Users\<user>\.ssh\config(create the file if it doesn't exist) and add the lineStrictHostKeyChecking no
- you must ssh into the server using a regular terminal and type yes when
{
"keys": [<user-defined keys>], "command": "repl_open", "args": {
"cmd": ["ssh", "-tt", "-i", <path_to_key.pem>, "<user>@<ip-address>"],
"cmd_postfix": "\n",
"encoding": {"linux": "utf-8", "osx": "utf-8", "windows": "$win_cmd_encoding"},
"env": {},
"external_id": "shell",
"suppress_echo": true,
"syntax": "Packages/SublimeREPL-ssh/config/Io/Io.tmLanguage",
"type": "ssh_paramiko"
},
}