I have a site using an older version of Debian, and have been deploying to a git repo using SSH keys:
"remote: ssh://USERNAME@IP_ADDRESS:PORT/home/USER/code.git"
I set up an SSH config file to add options for the rsa keys on the old server, and "ssh NAME" logs me in to USERNAME fine:
Host NAME
HostName IP_ADDRESS
User USERNAME
Port PORTNUM
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
However, it seems Nanoc uses the tty-command gem, so those options (normally added with an "-o" flag to the SSH command) aren’t seen by the gem and I get:
"no matching host key type found. Their offer: ssh-rsa,ssh-dss"
...
"/gems/3.4.0/gems/tty-command-0.10.1/lib/tty/command.rb:106:in 'TTY::Command#run'"
How can I add the same SSH options for tty-command to the Nanoc "deploy" block? I tried (e.g.) adding:
"option: HostKeyAlgorithms +ssh-rsa"
But no.