I have two machines on which one is running a postgresql charm and other is running the charm I'm working on. Now I need to ssh into the postgresql machine to run some database migration scripts. For unknown reasons, the charm fails when it tries to ssh to the postgresql machine.
ssh [email protected]
Permission denied (publickey).
10.0.3.59 is the IP for postgresql machine. I've scoured the internet for public key issue and done everything from generating a public key myself to copying it to the other machine but even ssh-copy-id throws error of public key. If i try to ssh from a juju machine into any other non-juju machine it works smoothly.
Anyone ever faced this problem?