Lost connection when setting up iptables, ssh can't connect anymore

168 views
Skip to first unread message

James Zhao

unread,
Jul 30, 2018, 2:37:47 PM7/30/18
to gce-discussion
Hi,

I lost connection when setting up iptables via ssh connection. I tried to reconnect but failed.

Since I haven't got to the step allowing ssh connection, so I guess there is no way that I can access it via ssh anymore. Is there any other methods that I could access the server? I tried to create a new instance with the snapshot but still can't ssh to it.

James Zhao

unread,
Jul 30, 2018, 4:54:50 PM7/30/18
to gce-discussion
I was able to solve this problem by myself. 

I added "iptables -A INPUT -i lo -j ACCEPT" to VM's startup-script custom-meta(I changed it to "DROP" before losing connection, which was causing the problem).


在 2018年7月30日星期一 UTC-7上午11:37:47,James Zhao写道:
Reply all
Reply to author
Forward
0 new messages