Last Updated: March 01, 2016
·
2.007K
· djm-rs

scp from localhost to openshift

If you have used openshift you could found out it if very easy deploy application from github.

But, what if you do not want to publish you code at github?!

I foun way to scp from my localhost to openshift gear:

  • Sign in your openshift account and open an application where you want copy file(s).

  • Click at link 'Want to log in to your application?'

  • After thet you will see ssh command which enable you ssh login to the gear.
    For example:

    ssh HASH@example-mysite.rhcloud.com

    HASH is twenty two hexadecimal digits hash.

  • Copy from your computer to the gear with

    scp ./FILE HASH@example-mygear.rhcloud.com:~/app-root/data

    Or copy from openshift gear to your computer

    scp HASH@example-mygear.rhcloud.com:~/app-root/repo/ .