Docs cipi.yml Web panel API MCP Guides Compare GitHub Telegram channel
  1. Docs
  2. Apps
  3. SSH as the app user

SSH as the app user

SFTP and SSH access for each app's own Linux user.

Apps

Each app is its own Linux user. Log in as that user to inspect files, run scripts or connect an SFTP client, with exactly the app's permissions.

Log in as the app#

PathUse
ssh myapp@serverSFTP, IDE remote sessions, terminal. Password from the creation summary
ssh cipi@server → su root → su - myappAdmin path, when app logins are disabled
bash
ssh myapp@your-server-ip
myapp@server:~$ cd ~/current
myapp@server:~$ php artisan about
myapp@server:~$ tail -f ~/logs/*.log
myapp@server:~$ ll ~/releases/

The app's shell has ll, deploy and composer shortcuts.

Control access#

bash
cipi app reset-password myapp           # new password, shown once
cipi ssh apps disable myapp             # no password logins for this app
cipi ssh apps disable --all             # for every app, present and future

Disabling app logins does not affect deploys or the admin path. See SSH keys.

open_basedir confines the app's PHP to /home/myapp. Your shell session follows normal file permissions instead.

Common problems#

ProblemFix
Permission denied with the passwordApp logins may be disabled: cipi ssh apps shows it; enable with cipi ssh apps enable myapp
Lost the app passwordcipi app reset-password myapp prints a new one, once
Can't read files of another appExpected: each app is isolated
php is the wrong version in the shellUse php8.6 (the app's version) or the deploy/composer shortcuts, which already use it