how to dowload a file with PubkeyAuthentication=no option
I tried to perform an scp by Ruby with this solution: How do I transfer files using SSH and SCP using Ruby calls?
But when I execute, it prints:
Text will be echoed in the clear. Please install the HighLine or Termios libraries to suppress echoed text.
Enter passphrase for /home/user/.ssh/id_dsa:
But the host is a key-less server, I want to remove this "Enter passphrase for /home/user/.ssh/id_dsa:" question.
If I do in linux command line:
ssh -o PubkeyAuthentication=no host.example.org
It works
I think I can pass the equivalent option to NET::SSH, but how I do that? Sorry, I am new to ruby and I am not finding any option like this
I appreciate if you could help me.
Thanks.
链接地址: http://www.djcxy.com/p/25276.html