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.
No description
22 Replies
Codercord
Codercord4w ago
<#1272414272835551232>
Category
Other
Product
Coder OSS (v2)
Platform
Windows
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys4w ago
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/PYXR2Kei
Checkmater
Checkmater4w ago
let 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
Phorcys
Phorcys4w ago
well, could you put both of those in the same network ? or maybe set up routing rules ?
Checkmater
Checkmater4w ago
By both you mean my computer and mac mini?
Phorcys
Phorcys4w ago
yes, well the Coder server and the mac mini
Checkmater
Checkmater4w ago
Actually I cannot since it is deployed at the company's office
Phorcys
Phorcys4w ago
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
Checkmater
Checkmater4w ago
Okay let me look into it
Atif
Atif4w ago
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
Checkmater
Checkmater4w ago
Actually I dont but let me try the tailnet setup, I'll update soon
Checkmater
Checkmater3w ago
@Phorcys @Atif
Phorcys
Phorcys3w ago
do you have any error messages?
Checkmater
Checkmater3w ago
No just stuck on connecting on mac mini
Want results from more Discord servers?
Add your server