Closed slarse closed 3 years ago
My ssh
/ scp
by default try all available private keys under ~/.ssh
, doesn't it do this for you? Maybe it's not as standard as I thought. From the ssh -v
log:
debug1: Will attempt key: Verificatum azure server key RSA SHA256:… agent
[…]
debug1: Next authentication method: publickey
debug1: Offering public key: Verificatum azure server key RSA SHA256:… agent
debug1: Server accepts key: Verificatum azure server key RSA SHA256:… agent
debug1: Authentication succeeded (publickey).
We can also add a --key
argument.
I think that's ssh-agent
doing some work, I don't have that running.
I'll try with ssh-agent
, and then we can recommend that.
With ssh-agent
running and the verificatum key added, the correct key was identified automatically. So perhaps resolve this by simply stating that ssh-agent
must be running and have the private key added? I think ssh-agent
is part of OpenSSH, so if there's SSH stuff on a machine, ssh-agent
is all but guaranteed to be there as well.
Ok, I'll do both: update the README and add a key argument
After the
start
command has set up the VMs, I get a crash when the script tries to run scp.How is scp supposed to know which SSH key to use here? The IP addresses of the servers are dynamically allocated in Azure, so I can't configure by host.
I worked around this by putting a catch-all in my SSH config:
But that seems a little bit dirty? Do you have a better way of doing it?