juju scp giving permission errors for lxd models
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
Undecided
|
Unassigned |
Bug Description
juju scp ./foo.txt ubuntu/
Output with `--debug`:
❯ j scp --debug ./juju_mongo_ssh.sh ubuntu/
13:06:57 INFO juju.cmd supercommand.go:56 running juju [3.1.7 0cd207d999fef1f
13:06:57 DEBUG juju.cmd supercommand.go:57 args: []string{
}
13:06:57 INFO juju.juju api.go:86 connecting to API addresses: [[fd42:
13:06:57 DEBUG juju.api apiclient.go:1172 successfully dialed "wss://
2/api"
13:06:57 INFO juju.api apiclient.go:707 connection established to "wss://
c10e52/api"
13:06:57 DEBUG juju.cmd.juju.ssh ssh_machine.go:344 proxy-ssh is false
13:06:57 DEBUG juju.network.ssh reachable.go:156 dialing [fd42:8f51:
13:06:57 DEBUG juju.network.ssh reachable.go:156 dialing 10.187.66.124:22 to check host keys
13:06:57 DEBUG juju.network.ssh reachable.go:169 connected to [fd42:8f51:
13:06:57 DEBUG juju.network.ssh reachable.go:169 connected to 10.187.66.124:22, initiating ssh handshake
13:06:57 DEBUG juju.network.ssh reachable.go:98 accepted host key for: 10.187.66.124:22
13:06:57 DEBUG juju.network.ssh reachable.go:98 accepted host key for: [fd42:8f51:
13:06:57 INFO juju.network.ssh reachable.go:223 found 10.187.66.124:22 has an acceptable ssh key
13:06:57 DEBUG juju.cmd.juju.ssh ssh_machine.go:494 using target "ubuntu/0" address "10.187.66.124"
13:06:57 DEBUG juju.network.ssh reachable.go:181 ssh: handshake failed: host key was accepted, but search was stopped
13:06:57 DEBUG juju.utils.ssh ssh.go:311 using OpenSSH ssh client
13:06:57 DEBUG juju.api monitor.go:35 RPC connection died
ERROR exit status 1 (scp: /var/crpc_mod.py: Permission denied)
13:06:57 DEBUG cmd supercommand.go:528 error stack:
github.
Is /var/crpc_mod.py accessible by the ubuntu user?