SSH
SSH Access Methods in Sliplane
Section titled “SSH Access Methods in Sliplane”Sliplane offers two ways to connect to services via SSH:
Direct SSH to Container Execute commands directly in your container. Great for debugging and admin tasks, but doesn't support SCP or rsync.
SSH Tunneling Access private services in the same Docker network. Supports full SSH functionality including SCP, rsync, and port forwarding.
Direct SSH Connection
Section titled “Direct SSH Connection”This method connects you directly into a specific container’s shell.
Prerequisite
Section titled “Prerequisite”You need to have an SSH key pair set up on your local machine.
You can follow this guide in order to generate an SSH key pair and add it to your SSH agent.
Attach your SSH key to a service
Section titled “Attach your SSH key to a service”- Navigate to the service that you want to connect via SSH
- Click on the “SSH” tab in the service dashboard
- Click on “Attach SSH key”
- Select your SSH key from the list or click on “Add new key” if you haven’t added any SSH keys to your account yet
Connect to your service via SSH
Section titled “Connect to your service via SSH”After attaching your SSH key to a service, you can see the SSH command that you can use to connect to your service.
Example SSH command:
ssh -p 22222 service_12345@server_domain
Copy and run the SSH command that is displayed in your terminal in order to connect to your service.