Access your server using SSH
-i
flag:
~/.ssh/authorized_keys
file.
~/.ssh/config
the following:
terraform/config/ssh/public_keys
and run the installer go run selfhoster.go --apply
in the root of the project. This will recreate the EC2 instance with the new public key.
terraform/config/ssh/public_keys
list.
To add a new key, update the terraform/config/ssh/public_keys
list with the new key.
And run the installer go run selfhoster.go --apply
in the root of the project.
allow_ssh = true
in the variables.auto.tfvars
file, and run go run selfhoster --apply
. This will open the port 22 to the internet, and you will be able to access the server using the public IP address.
(Not recommended, but still an option if you are having trouble accessing the server)