Get all ssh options from config

This commit is contained in:
David Heinemeier Hansson
2023-01-07 21:30:58 +01:00
parent 2eab74d016
commit 8fa53a0f95
2 changed files with 5 additions and 3 deletions

View File

@@ -5,6 +5,4 @@ include SSHKit::DSL
MRSK_CONFIG = Mrsk::Configuration.load_file(Rails.root.join("config/deploy.yml"))
SSHKit::Backend::Netssh.configure do |ssh|
ssh.ssh_options = { user: MRSK_CONFIG.ssh_user, auth_methods: [ "publickey" ] }
end
SSHKit::Backend::Netssh.configure { |ssh| ssh.ssh_options = MRSK_CONFIG.ssh_options }