I just created an account on openshift https://www.openshift.com/ and successfully added my local system's public key to this account and I'm able to login through ssh by using this command
user@user$ ssh <some_weird_string/hash>@pythonapp-eric.rhcloud.com
but when I tried to copy a file from my local, I got permission denied error
user@user$ scp Desktop/test.py <some_weird_string>@pythonapp-eric.rhcloud.com:/
<some_weird_string>
is same for scp and ssh.
(And also I'm not allowed to use sudo command on openshift. I tried to install tree
utility by this commmand sudo apt-get install tree
but I got this error bash: /usr/bin/sudo: Permission denied
)
however pip
is working perfectly. I installed requests module pip install requests
.
but how could I SCP. and is there any trick to use sudo on that machine?(though I'm not concerned about sudo) but I must be able to copy file from local to openshift.
PS: I've tried
scp Desktop/test.py <some_weird_string>@pythonapp-eric.rhcloud.com:
scp Desktop/test.py <some_weird_string>@pythonapp-eric.rhcloud.com:~/
and other combo as well but same error. and I found that tree utility is by default installed there.
I clone the git repo and put my script in local and git add-commit-push. but I'm unble to find in that machine. I mean in git/pythonapp.git/
folder.
these files/folders are present in my app git repo on this openshift machine but I'm not able to find my py script.
branches config description HEAD hooks info logs objects packed-refs refs