connect mac mini with coder
I want to connect my mac mini to coder. For this purpose, I am following this template https://github.com/bpmct/coder-templates/tree/main/shared-mac by @bpmct. I am having trouble connecting via SSH to my mac mini. These are my variables in the main.tf file and rest is same as in the template in the above link:
variable "mac_user" {
sensitive = true
default = "Admin Account"
}
variable "mac_host" {
sensitive = true
default = "Admins-Mac-mini.local"
}
The workspace cannot be created successfully and is stuck on the part as shown in the attached image. Can someone help me in this regard?
GitHub
coder-templates/shared-mac at main · bpmct/coder-templates
Templates I use for my Coder deployment. Contribute to bpmct/coder-templates development by creating an account on GitHub.
22 Replies
<#1272414272835551232>
Category
Other
Product
Coder OSS (v2)
Platform
Windows
Logs
Please post any relevant logs/error messages.
hey @Checkmater, using
variable
statements has been deprecated, those are meant to be user-inputtable parameters, but that template is very outdated as I mentioned
but as you can see, this connects to the mac mini using a SSH key, have you trusted that key on the mac mini ?
also, I'm not sure that "Admin Account" would be the right username to use
your current setup would be equivalent to the following SSH command: ssh "Admin Account"@"Admins-Mac-mini.local"
, does that work outside of Coder?
here's something more up to date (untested) -> https://pastebin.com/raw/PYXR2Keilet me check
I tried to ssh into the mac mini using the ip adrress on putty but it is giving connection timed out error.
I think the mac mini is a private network, so I need to use something like an openvpn to access it and cant simply use ssh for this, what do you think? @Phorcys
well, could you put both of those in the same network ? or maybe set up routing rules ?
By both you mean my computer and mac mini?
yes, well the Coder server and the mac mini
Actually I cannot since it is deployed at the company's office
so, the mac mini and the Coder server are in different physical networks ?
maybe set up a VPN tunnel, or use something like Tailscale, you could also use another SSH server that has access to both as a jump server
Okay let me look into it
Maybe set up tailscale and connect Coder and macmini to your tailnet
Do you have an enterprise license? You can then run an external provisioner on mac mini
I will personally go with setting up a tailnet using tailscale.com
Actually I dont but let me try the tailnet setup, I'll update soon
@Phorcys @Atif
do you have any error messages?
No just stuck on connecting on mac mini
okay, is the ssh key on the Coder server trusted by the mac mini?
Okay let me confirm
hey @Checkmater -- any luck?
Hi @Phorcys actually our manager asked us to drop this case study for now, will update if we have any progress in the future.
oh alright, that's pretty sad :-(
sorry that we couldn't help you in time!
feel free to come back if you need any help
Okay thanks!
@Phorcys closed the thread.