SSH as the app user
SFTP and SSH access for each app's own Linux user.
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#
| Path | Use |
|---|---|
ssh myapp@server | SFTP, IDE remote sessions, terminal. Password from the creation summary |
ssh cipi@server → su root → su - myapp | Admin 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#
| Problem | Fix |
|---|---|
Permission denied with the password | App logins may be disabled: cipi ssh apps shows it; enable with cipi ssh apps enable myapp |
| Lost the app password | cipi app reset-password myapp prints a new one, once |
| Can't read files of another app | Expected: each app is isolated |
php is the wrong version in the shell | Use php8.6 (the app's version) or the deploy/composer shortcuts, which already use it |