Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue connect with Cyberduck #5

Open
sham1111 opened this issue Mar 25, 2021 · 9 comments
Open

Issue connect with Cyberduck #5

sham1111 opened this issue Mar 25, 2021 · 9 comments

Comments

@sham1111
Copy link

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

@kolban-google
Copy link
Owner

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?

@sham1111
Copy link
Author

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

@kolban-google
Copy link
Owner

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.

@sham1111
Copy link
Author

sham1111 commented Mar 25, 2021

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
Copy link
Author

Image with firewall rule
image

@kolban-google
Copy link
Owner

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

@sham1111
Copy link
Author

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

@GillesFerone
Copy link

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..

@kmeljko
Copy link

kmeljko commented Mar 29, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants