Synpse allows you to ssh into the edge. You can access your devices anywhere where they are.
Synpse allows you to connect to the device via the SSH directly from the browser:
First, to list your devices:
NAME STATUS IP OS LABELS LAST SEEN CREATED |
nuc online 192.168.1.120 Ubuntu arch:amd64 1 second ago 23 hours ago |
To access your device from the CLI:
synpse ssh <device name>
Synpse supports native ssh clients too. So you can use tools like SCP or Ansible more easily with your devices. Native ssh client supports 2 modes of authentication:
- 2.SSH keys
You can ssh to any device using the syntax below. Password for this is is
Service account access key
RBAC is still applicable to these connections. User in question should have "Resource: Device, Action: SSH" in their role bindings for authentication.
To authenticate using SSH keys you need to add public SSH key into your account. This can be done via UI
SSH Keyssection or CLI
synpse ssh-keys add <key-name> -k <path-to-public-key>
Or synpse CLI can do this for you. Just run
synpse ssh-keys configureand it will generate key pair into .ssh folder and add it to the current synpse session.
synpse ssh-key configure
NAME SSH KEY CREATED LAST USED
unknown-cli ecdsa-sha2-nistp521 AAAAE... 112 milliseconds ago 112 milliseconds ago
We understand that these names are hard to remember and to use. For this CLI will manage part of the
.ssh/configfile. If you have a synpse SSH key configured using
synpse ssh-keys configureand you execute native ssh command
synpse ssh <device_name>ssh config will be updated with all the required details. See the example below:
# configure cli ssh key
synpse ssh-keys configure
# SSH using native CLI client
synpse ssh minis
# check your .ssh/config file
# SSH using short command!
Example how to generate ECDSA key pair:
ssh-keygen -t ecdsa -b 521
Where is a way to prevent anybody with access to SSH into the devices? This can be done using RBAC or via ssh key checking. Documentation is coming, but if you need this now - ping us on Discord