Can someone please shed some light on this issue I have with net-ssh. I am new to ruby and am working on this project.
How do I tell net ssh to use the username and password provided to connect to the servers without needing to have a shared key between my machine and those servers?
def connect
Net::SSH.start("#{@servername}", "#{username}", :password => "#{password}") do |ssh|
result = ssh.exec!("ls #{@dirname}").chomp
puts result
end #ssh
end