Transfer via SSH failed

asked 2020-03-11 10:53:31 +0200

wmcig gravatar image

updated 2020-03-11 20:37:30 +0200

I wanna know how to use the systemd timer to turn my Jolla phone off at a specific time? I found these information: https://together.jolla.com/question/134721/how-to-schedule-shutdown-of-the-jolla/?sort=votes&page=1

But these infos are from 2016 and the system in the background changed a bit. The systemd folder we can now found in /etc/systemd/user/.

I tried to transfer the file "systemd_shutdown_service.service" via SSH to my phone. In the folder "user" I use the following command: "scp /home/myPC/Schreibtisch/systemd_shutdown_service.service nemo@192.168.178.44:/etc/systemd/user/". After this command I have to fillout the password.

But the following notice says: "/home/myPC/Schreibtisch/systemd_shutdown_service.service: No such file or directory"

What's wrong with it?

edit retag flag offensive close delete

Comments

2

It is your local file not being found. Nothing related to the phone.

attah ( 2020-03-11 11:05:00 +0200 )edit

Have you used autocompletion of files and folders (tab key) when entering the command?

Pohli ( 2020-03-11 12:36:29 +0200 )edit

The local file is in the folder which I am using for transfering the data.

I have not used the autocompletion of files and folders.

wmcig ( 2020-03-11 12:43:41 +0200 )edit
2

@wmcig are you sure the file /home/roma/Schreibtisch/systemd_shutdown_service.service exists? Even if it existed, you most likely are not allowed to place it in /etc/systemd/user as user nemo, I guess you have to transfer it to /home/nemo and move it to its final destination as root (and finally telling systemd about the newly installed service if you don't want to reboot).

Maus ( 2020-03-11 13:33:57 +0200 )edit
1

@wmcig: So you should use autocompletion in future to avoid mistyping files and folders. Also it makes typing commands much faster and more convenient. And in this case it would exclude a mistyping problem.

Pohli ( 2020-03-11 15:36:39 +0200 )edit