SSH connect to server

I write a tf file and want to connect to server to install microk8s with snap in it.

It goes stuck and didn’t give output. I also tried to create a file it was creating but when the system goes to connect it gives up.