You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
algorithms.rb:410:in `negotiate': could not settle on host_key algorithm (Net::SSH::Exception)
Server host_key preferences: ssh-ed25519-cert-v01@openssh.com,ssh-ed25519
Client host_key preferences:
# Read the private key data from the fileprivate_key_data=File.read(private_key_path)Net::SSH.start(hostname,username,key_data: private_key_data,host_key: ['ssh-ed25519'])do |ssh|
# Execute a command on the remote serveroutput=ssh.exec!("echo 'Hello, World!'")# Print the output of the command executionputs"Command output: #{output}"end
The text was updated successfully, but these errors were encountered:
Expected behavior
host_key
is set.Actual behavior
Getting the following error:
System configuration
ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin21]
net-ssh (7.1.0)
Example App
The text was updated successfully, but these errors were encountered: