@ aschrage and @bb77: I have now successfully added a SSH user (SSH-Benutzer hinzufügen) and changed permissions (Berechtigungen von Dateien/Verzeichnissen ändern).
In order to access to navigate directly to the right folder, I’m trying to use Termius, unsuccessfully, though. I’ll try again. Am I on the right path or am I better off using some other method “to access the webspace directly via SSH and start the CLI-updater from there with the --no-backup option, and if necessary also delete old backups manually.”?
You are on the right track now that you have SSH access.
First task: Figure out where nextcloud is installed (/path/to/Nextcloud).
Second: Under which user the content of the Nextcloud install path is owned (ls -l will show you that). This user is the one you will need to sudo as to run the update command properly.
Third: Verify if you can use the alias php or if you need to refer to the path of the correct php version and application (example but can be different than your environment: /usr/bin/php8.3
Lastly: Run the command as suggest here:
sudo -u <the username of the user owning the files in the nextcloud install path> <php or /usr/bin/php8.3 or whatever on your environment> <path to nextcloud>/updater/updater.phar --no-backup
I just don’t understand why you can’t deactivate the backup in config.php, for example, and then it won’t be used in the webupdater either. Maybe this can finally be adjusted. Perhaps an interested developer is reading along. Thank you.
@ devnull: how do I do that? what’s the command line I should add in config.php?
@ Kerasit: many thanks. Unfortunately I can’t SSH-login with Termius: I get an error message that says that my public key (I created on Manitu>SSH) is of an “incorrect format”. Any other program I should use to get access?
Hi @imageraw2, I’m not familiar with the web service Terminus.
On my Windows machine I’m using putty and and on my MacBook the terminal with the ssh command.
Your public key sequence should start with “ssh-rsa”.
When you have managed to get the ssh session up and running enter the command “pwd” and you should see something like this
/home/sites/site100000999/sshusers/ssh300007999
navigate to “/home/sites/site100000999” (simply enter the command cd .. twice)
From there go to the directory “web” (cd web)
I do not know in what directory you have installed your Nextcloud installation, but change to this directory (eg. cd nextcloud)
When you are in your Nextcloud directory enter php updater/updater.phar
or php updater/updater.phar –no-backup
The instructions from Manitu that I linked earlier in the thread say the following:
ssh-keygen -t rsa -b 4096
Durch diesen Befehl wird ein Schlüsselpaar erstellt. Durch den Zusatz “-t rsa” können Sie einen Key mit dem notwendigen kryptographischen Verfahren erstellen. “-b 4096” definiert die Key-Länge.
This means they excpect an RSA key with a length of 4096 bits.