I’m trying to develop a script that will use net-ssh to performe some
routine commands on a remote server.
But i’ve a problem when i give a comand that will change the remote
prompt. I think ruby is expecting the default caracter “#”, but the
will change it to “>”, and the script don’t run.
Net::SSH.start(‘172.16.20.78’, ‘root’, :password => “passwd” ) do |
output = ssh.exec!(“su - sysad”)
Could you please tell me I could I change the “expected” prompt?