I have a similar issue as the prior one Net::SSH with non unix/linux host?
I am trying to connect to a device (vyatta) and do some configurations. If I use exec, it will raise an exception like "invalid command". I guess that is because the environment issue. What I am looking for is a way to just send a string to server to simulate the manual way, I thought send_data could do it, but seems like not works. Any suggestions? Thanks
@ssh_conn = Net::SSH.start( host, user, :password => pass ) do |ssh|
ssh.open_channel do |channel|
p "open channel"
channel.send_data("show date\n")
end
end
Paste another useful link here, seems vyatta uses vbash Paramiko "Invalid command" when trying non-standard command for Vyatta