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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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).