net-ssh / net-scp

Pure Ruby implementation of the SCP protocol
http://github.com/delano/net-scp
MIT License
152 stars 62 forks source link

Need to input password on RHEL 8 while it shouldn't #69

Open andy-yu-y opened 1 year ago

andy-yu-y commented 1 year ago

Net::SCP.download!" is getting a password prompt for RHEL 8 hosts. But if directly execute scp command to download the same file from the same host the password is not needed. We already do below setting on the host:

  1. copied id_rsa.pub to authorized keys to avoid password prompt
  2. added config file to avoid HostKeyChecking prompt: Host * StrictHostKeyChecking no UserKnownHostsFile /dev/null LogLevel QUIET

Could anyone help to how to fix this issue? We are using version v3.0.0