fssh
is wrapper above ssh
binary that allows easy ssh to AWS and Digital Ocean instances.
By default in fssh
each SSH session starts with 2 SSH options: -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
. This can be overridden using FSSH_OPTIONS
environment variable.
fssh
is using default SSH binary located at /usr/bin/ssh
. This binary can be overridden by using FSSH_SSH
environment variable.
By setting FSSH_DEBUG
environment variable fssh
will work in debug mode.
fssh
in AWS mode works using Named Profiles, make sure to configure profile.
fssh
look for pem keys using key name that configured for each instance. The key should exists in global path that can be configured with FSSH_KEY_DIR
environment variable (default is ~/.ssh/pem/
) and under directory with AWS Profile name with read only permissions.
AWS search is only using instance ID.
fssh aws [profile_name] [region_name] [instance_id]
Digital Ocean mode currently works with default user private key. Make sure servers in DO have correct computer public key.
fssh
uses Digital Ocean API to find servers. Set DO_API_KEY
environment variable with correct API key.
Digital Ocean currently can discover coreos
user and the fallback is local machine user.
fssh do [instance_tags]