Remote.Adapters.SSH (remote v0.1.0)

View Source

Default SSH adapter for remote compiler.

Requirements

  • Elixir & Erlang installed on the remote machine (via asdf or package manager).
  • SSH access from local → remote.
  • rsync installed on both machines.

Configuration

config :remote, Remote.Adapters.SSH,
  host: System.fetch_env!("REMOTE_HOSTNAME"),
  path: System.fetch_env!("REMOTE_PATH")

And set your envs. For example, to test to a local folder:

export REMOTE_HOSTNAME=`whoami`@localhost
export REMOTE_PATH=/tmp/remote/

SSH Setup

  1. Check if you have an SSH key and generate it if you don’t have one:
ls ~/.ssh/id_*.pub

# Run line below if no results appear
# ssh-keygen -t ed25519 -C "your_email@example.com"
  1. Copy the key to the remote:
ssh-copy-id $REMOTE_HOSTNAME
  1. Test login without password
ssh $REMOTE_HOSTNAME

Summary

Functions

config()