openforis / sepal

Geographical Data Processing in the Cloud
https://sepal.io/
MIT License
205 stars 46 forks source link

cannot send a file from one SEPAL account to another #179

Closed 12rambau closed 2 years ago

12rambau commented 2 years ago

Describe the bug

When I try to access another account from SEPAL using scplinux command I get a time out error on port 22.

To Reproduce

I try to send a small file from my prod account to my test one:

scp -P 443 prambaud@ssh.sepal.io:/home/prambaud/test.txt prambaud@ssh.test.sepal.io:/home/prambaud/text.txt

And I receive the following error :

ssh: connect to host ssh.sepal.io port 22: Connection timed out

I first thought it was the FAO firewall or my FAO computer that was preventing me to use scp but I expreienced the same issue on my personal macbook laptop on my home network.

testing

Here you'll find a matrix of the different commands I've tried and how they reacted. I tried to connect to the account through ssh and send a file via scp. I don't understand why the port 22 is used for all the scp commands.

command result
scp -P 443 @host/test.txt @target/text.txt ssh: connect to host ssh.sepal.io port 22: Connection timed out
scp -P 403 @host/test.txt @target/text.txt ssh: connect to host ssh.sepal.io port 22: Connection timed out
scp @host/test.txt @target/text.txt ssh: connect to host ssh.sepal.io port 22: Connection timed out
ssh -p 443 @target working, connection established after password
ssh -p 403 @target ssh: connect to host ssh.test.sepal.io port 403: Connection timed out
ssh @target ssh: connect to host ssh.test.sepal.io port 22: Connection timed out
12rambau commented 2 years ago

That's not a real issue, that is just me badly understanding how scp command works. I need to be either the host or the tartget so in this case:

scp -P 443 ~test.txt prambaud@ssh.test.sepal.io:/home/prambaud/test.txt

works like a charm.

Thanks @cdanielw for the explainantions