From: Damien Damien Date: 2006-08-28T18:55:59+09:00 Subject: Ruby + SSH + Sudo Hi all, I am developping and application that connect through ssh to a host and then try to launch a command with sudo. I am using the net/ssh library, and I use the key-rsa authentication to connect (so no password needed). ------ Net::SSH.start(host.name) do |session| shell = session.shell.sync shell.send_command("sudo ps -ef") shell.exit end end ------ So the code is locked to the send_command as the host is waiting me to fill the password. But I don't find anyway of filling it. ".send_data" doesn't work. Did I missed something ? Thanks -- Posted via http://www.ruby-forum.com/.