sftp-gcs icon indicating copy to clipboard operation
sftp-gcs copied to clipboard

Issue connect with Cyberduck

Open sham1111 opened this issue 3 years ago • 9 comments

Hi, thanks for the great tutorial. I have setup virtual machine exactly the same according to you instructions .I managed to connect google storage from virtual machine but when I tried to connect from cyberduck its not connected. This is the error . Operation timed out. The connection attempt was rejected. The server may be down, or your network may not be properly configured In the tutorial you have not explained any firewall related issue:-) thanks in advance

sham1111 avatar Mar 25 '21 16:03 sham1111

Howdy my friend ... let's see if we can get a handle on the puzzle. I'm assuming that you are running the sftp demon/code on a Compute Engine within GCP. Where are you running your cyberduck client? Is the puzzle only with the cyberduck client? If you tried with an alternate SFTP client does it work?

kolban-google avatar Mar 25 '21 16:03 kolban-google

thanks for the quick reply, Yes I am running demon/ code on a computer engine and cyber duck on the local machine. No it does not work with alternative SFTP client as well. I think port is the issue and I tried to create firewall rule on GCP but it still does not work. I like the way you did the implementation and it's perfect:-) When I run locally in Compute engine it works.If we can solve this access outside with username and password.This is great implementation

sham1111 avatar Mar 25 '21 19:03 sham1111

Okly ... I'm imagining you are running the demon on a Compute Engine on GCP. I am imagining that the Compute Engine is running a Linux OS such as Debian. I am imagining that the Compute Engine is attached to a GCP VPC network subdomain. I am also imagining that the Compute Engine has a public IP address that you are using to reach it over the Internet.

Have you created any firewall rules for accessing the demon? What TCP/IP port number is the demon listening upon?

My gut is saying that we will have to create an inbound (ingress) firewall rule that permits traffic to come into your Compute Engine from the Internet to the port on which the demon is listening.

kolban-google avatar Mar 25 '21 19:03 kolban-google

yes, I follow the same instruction according to your tutorial.Yes,compute engine is attached and using external IP to access from cyber duck. I have created the rule for firewall rules to the demon and demon listening port is 8022 Everything as you recommended:-) Here are the commonds: sudo apt-get update sudo apt-get install nodejs git --yes curl -L http://www.npmjs.org/install.sh | sudo sh npm install git clone https://github.com/kolban-google/sftp-gcs.git cd sftp-gcs ls npm install node sftp-gcs --debug=debug --bucket gs://oddo --port=8022 --user=***** --password=********* If you have a time and I can share my screen on skype or somewhere else?

sham1111 avatar Mar 25 '21 19:03 sham1111

Image with firewall rule image

sham1111 avatar Mar 25 '21 19:03 sham1111

I think a screen share will be great. Its 3:18pm on Thursday afternoon. You can email me at [email protected] or try and use Google Chat at the same address. I have a client call 4pm-5pm. I am out tomorrow ... if not now, then maybe we can synch up for next week? Email me a couple of good times for you as needed.

Neil

kolban-google avatar Mar 25 '21 20:03 kolban-google

@kolban-google thanks and it works after opening the firewall:-) Thanks for the help

sham1111 avatar Mar 26 '21 15:03 sham1111

Hi there, Thank you for the tutorial and elegant bridging solution you built @kolban-google. I'm encountering a similar issue. I followed all the steps laid out here https://www.youtube.com/watch?v=yREQRw1H23Q&t=389s Trying to connect to the SFTP server from my mac computer via Cyberduck fails with the same error message you laid out @sham1111 Operation timed out. The connection attempt was rejected. The server may be down, or your network may not be properly configured I didn't set any specific firewall rule. Could you expand on this it works after opening the firewall ? I tried using the native "SFTP" of my mac terminal and was unable to connect to the server as well..

GillesFerone avatar Aug 04 '21 09:08 GillesFerone

After Filezilla I found that cyberduck also can't be used for sftp with this software (linux ftp command and winscp works). Is the problem same as with Filezilla with serial or something different

kmeljko avatar Mar 29 '22 22:03 kmeljko