Skip to content

SSH features

vhqtvn edited this page Nov 13, 2022 · 2 revisions

Manage ssh connections

Systemwide

VHEditor require the ssh connections to be password-less. Ssh keys are recommended, most basic common setup is:

  • Generate your sshkey and put it into ~/.ssh/id_rsa
  • Add id_rsa.pub's content to your remote server's .ssh/authorized_keys

Let's say the remote server is example.vheditor.com, after doing so you can ssh from the default terminnal using

You can use sshconfig to have quick alias for other options. Quick google will provide more informations (offical document, easier link,...).

for VHEditor

~/.vheditor/ssh

At New Session screen of VHEditor, you'll see a button for Edit ~/.vheditor/ssh, tapping it will open editor to the file. Content of that file should be like:

myserver
user1@server1
...

That is, each line is the server alias or user@server. Custom ports should be inside ssh/config.

Advanced: parsing of that ~/.vheditor/ssh file is here new_session_default.js:93, you can customize to suite your need by edditing ~/vhe-modules/new-session.js, it's ReactNative under the hood so you can customize the New Session page with more advanced widgets if you want, this should be in another wiki topic.

After have ~/.vheditor/ssh file content populated, check back New Session screen you'll see your ssh entries displayed, tapping these entry will bring up ssh console, or tapping the REMOTE EDITOR button will have VHEditor to try to start code-server remotelly and try to install if needed.

Screenshot_20221113_091820_VHEditor Screenshot_20221113_091458_VHEditor

Clone this wiki locally