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
Codercord4mo ago
<#1272414272835551232>
Category
Other
Product
Coder OSS (v2)
Platform
Windows
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys4mo 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
CheckmaterOP4mo 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
Phorcys4mo ago
well, could you put both of those in the same network ? or maybe set up routing rules ?
Checkmater
CheckmaterOP4mo ago
By both you mean my computer and mac mini?
Phorcys
Phorcys4mo ago
yes, well the Coder server and the mac mini
Checkmater
CheckmaterOP4mo ago
Actually I cannot since it is deployed at the company's office
Phorcys
Phorcys4mo 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
CheckmaterOP4mo ago
Okay let me look into it
Atif
Atif4mo 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
CheckmaterOP4mo ago
Actually I dont but let me try the tailnet setup, I'll update soon
Checkmater
CheckmaterOP4mo ago
@Phorcys @Atif
Phorcys
Phorcys4mo ago
do you have any error messages?
Checkmater
CheckmaterOP4mo ago
No just stuck on connecting on mac mini
Phorcys
Phorcys4mo ago
okay, is the ssh key on the Coder server trusted by the mac mini?
Checkmater
CheckmaterOP4mo ago
Okay let me confirm
Phorcys
Phorcys4mo ago
hey @Checkmater -- any luck?
Checkmater
CheckmaterOP4mo ago
Hi @Phorcys actually our manager asked us to drop this case study for now, will update if we have any progress in the future.
Phorcys
Phorcys4mo ago
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
Checkmater
CheckmaterOP4mo ago
Okay thanks!
Codercord
Codercord3mo ago
@Phorcys closed the thread.
Want results from more Discord servers?
Add your server