ruby - Net::SSH Authentication failed when connect heroku to another server with key -
i'm trying connect heroku server net/ssh , net/scp.
my server doesn't permit connect password when ssh connection have use secret key.
how should deploy heroku local key?
opt = { :keys => 'local path secret key', :passphrase => 'passphrase', :port => 22 } net::ssh.start('hostname', 'username', opt) |ssh| p "scp start!" end
thank you!
Comments
Post a Comment