how often does the letter "1" occur in:
q: gce / vpc = operation timed out i followed using firewall rules  |  vpc  |  google cloud platform vpc documentation, however whenever i try connect, i get following:

operation timed out

client side - verbose mode:
$ sftp -v -p 2222 username@x.x.x
openssh_6.2p2, openssl 0.9.8y 5 feb 2013
debug1: reading configuration data /home/alexus/.ssh/config
debug1: reading configuration data /etc/ssh/ssh_config
debug1: connecting to x.x.x [x.x.x.x] port 2222.
debug1: connect to address x.x.x.x port 2222: operation timed out
ssh: connect to host x.x.x port 2222: operation timed out
connection closed
$

server side:
due to my packets do not reach destination therefor nothing in the logs (or i'm looking in wrong place).

quick recap:


*

*vpc:


*

*create a firewall rule

*name / description (sftp2222/sftp)

*specified target tags (tag)

*specified source ip ranges (x.x.x.x/32)

*specified protocol and ports (tcp:2222)


*gce


*

*network tag specific instance



please advise.

a: i don't want to bore anyone with details, however the answer (at least for me) was pretty simple...


*

*source ip - long story short, it was incorrect.


a: [i would create a comment, but i don't have enough reputation]
check if the instance is being tagged by the tag "sftp2222". also check if the the ssh daemon is set up to listen to the port 2222 (in your sshd_config these 2 take care of this: - listenaddress - port). as other test, allow the icmp in the same firewall rule and try to ping the instance. if it works, the firewall rule is properly set up, if not, there is something missconfigured in the firewall rule.

a: i would have added a comment instead but i have a privilege lower than 50.

are you trying to sftp into a gke docker container?
have you checked that your firewall rule has the correct priority set and that no other rule above it is hampering you efforts?

user
The total number of "1"s in that passage is 5.
assistant