Remote.Adapters.SSH (remote v0.1.0)
View SourceDefault SSH adapter for remote compiler.
Requirements
- Elixir & Erlang installed on the remote machine (via
asdfor package manager). - SSH access from local → remote.
rsyncinstalled 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
- 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"
- Copy the key to the remote:
ssh-copy-id $REMOTE_HOSTNAME
- Test login without password
ssh $REMOTE_HOSTNAME