ssh

Allows the user to ssh into a specific service of their app.

Optionally a user can run a command directly against a specific service without dropping into a shell and as a user you specify. If you find yourself running a lot of these commands then set up a tooling route or use some bash aliases.

What are my services called?

Try running lando info from inside your app to get a list of services you can ssh into.

Usage

# Drop into a shell on the appserver from an app directory or its subdirectories
lando ssh appserver

# Drop into a shell for the database for myapp
lando ssh myapp database

# List all the files in the root directory of the appserver
lando ssh appserver -c "ls -ls /"

# Drop into a shell on the appserver as root
lando ssh --user=root

Options

  --command, -c  Run a command in the service
  --user, -u     Run as a specific user

results matching ""

    No results matching ""