Ways how to keep a process running after logging out

There are many ways how to keep a process running after logging out. Each if them has its own advantages and disadvantages: nohup, disown, screen, tmux, ssh2go, etc. Here's how it works with screen:

ssh # connect to server
screen # start screen
run-a-long-process # start process
CTRL+a,d # to detach from your screen session
exit # disconnect from the server

ssh # reconnect
screen -r # resume the screen session

How to enable passwordless logins to a server

  1. Enable root login with password on the server. To do so, you need to edit the file /etc/ssh/sshd_config.
    Modify the lines starting with "PermitRootLogin" like this:
    #PermitRootLogin prohibit-password
    PermitRootLogin yes
  2. Restart the sshd server:
    sudo systemctl restart sshd
  3. On the client, copy the public key files to the server with the ssh-copy-id command:
    ssh-copy-id root@server
  4. On the server, disable root login with password and enable root login with public key authentication:

Passwordless login via the GUI and ssh defaults

I am using the cloud services at CSC and they do not allow ssh login with the traditional login/password combo.
When I want to make a bookmark in my file manager (Nemo) pointing to this location. I need to specify a rsa key file. that is used for the login. On the command line, it looks as follows:

ssh -i ~/.ssh/encypted_rsa_key.pem cloud-user@pouta