The easier way to install your ssh key on remote servers

You want to install your ssh key on a remote server so that you can log into it without a password. Most guides will show you something like this:

user@host:~$ scp ~/.ssh/key.pub remoteuser@remotehost:~/
$ ssh remoteuser@remotehost
remoteuser@remotehost's password:
remoteuser@remotehost:~$ cat key.pub >> ~/.ssh/authorized_keys
remoteuser@remotehost:~$ rm key.pub
remoteuser@remotehost:~$ exit

That's fine, but why not do it in one step?
user@host:~$ ssh-copy-id -i ~/.ssh/key.pub remoteuser@remotehost
remoteuser@remotehost's password:

And you're done.