I'm writing a charm that I deploy on a local juju instance. Works great, but it would help debugging the charm if I were able to SSH into the instance. Is there a way to do this?
Yes, you can ssh directly into any juju node with
or just the machine # if you want to do it that way:
This will ssh you into whichever unit of whichever service. I prefer to do it by service name because I tend to mix up numbers. If you're looking to debug a charm however, you should check out
If you're not on a Juju enabled box and need to SSH in, you need to find the IP/hostname of the machine to ssh to. In the case of Amazon or HP Cloud you can get this information via the usual CLI tools or by using the web console to get the IP that the provider has assigned the instance.