mina-deploy / mina

Blazing fast deployer and server automation tool
https://rubygems.org/gems/mina
Other
4.34k stars 491 forks source link

Ugh... not able to fetch new commits #720

Closed staycreativedesign closed 9 months ago

staycreativedesign commented 1 year ago

-----> Fetching new git commits
Warning: the RSA host key for 'github.com' differs from the key for the IP address '140.82.114.4'
Offending key for IP in /home/deployer/.ssh/known_hosts:6
Matching host key in /home/deployer/.ssh/known_hosts:8

tvcam commented 1 year ago

Set execution_mode to :system fixs this: set :execution_mode, :system

ref: https://github.com/mina-deploy/mina/blob/master/docs/how_mina_works.md#execution-modes-runners

lovro-bikic commented 9 months ago

This is a result of GitHub changing its SSH host key (https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key).

You can resolve this by SSH-ing to the server (you can do it via Mina with the command mina ssh) and replacing the host key in the known_hosts file, which is explained in this part of the blog post.