Add SSH-Key through local script

I’m setting up an script that will automatically setup git with everything else. The only point I’m currently stuck at, is how to add an SSH-key automatically to our in-house gitlab server.

The script is an simple bash script, which calls the ssh-keygen command, so I’ve got the generating covered. But now I want to be able to “send” the key to the in-house gitlab server, so that we could use git right away.

I really hope that this is possible… If you need more information, let me know.