I'm trying to deploy artifacts from my gitlab.com-account to another host. This should be done in a secured way; I don't need nexus or artifactory, too heavyweight for small projects. Right now, I'm using leiningen and I'm trying to upload via scp. It should be possible according to: https://github.com/technomancy/leiningen/blob/master/doc/DEPLOY.md
However, I get 'Could not transfer metadata ... - Host key verification failed.' and 'Failed to retrieve remote metadata ... - Host key verification failed.' SoI tried to add the key of my external server, by adding: if ! ssh-keygen -H -F <IP address> >/dev/null 2>&1; then echo "Host key for fqdn <IP address> not found, adding it to known_hosts ..."; ssh-keyscan -H < IP-address> "${HOME}/.ssh/known_hosts" 2> /dev/null; fi; just before 'lein deploy' in the script-part of .gitlab-ci.yml, I did get a: $ if ! ssh-keygen -H -F <IP-address> >/dev/null 2>&1; then echo "Host key for fqdn <IP-address> not found, adding it to known_hosts ..."; ssh-keyscan -H <IP-address> >> "${HOME}/.ssh/known_hosts" 2> /dev/null; fi; Host key for fqdn <IP-address> not found, adding it to known_hosts ... bash: line 51: /root/.ssh/known_hosts: No such file or directory The question is just: how can I do a secured(!) deploy of an artifact (jar) to an external server from gitlab.com, using leiningen (of maven, if leiningen is not possible, which seems unlikely to me)? (Or how can I use gitlab.com as maven repo?) Thx, qsys -- You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/c6e2aafc-c6ef-4af4-819d-90b3df220729%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.