net-telnet icon indicating copy to clipboard operation
net-telnet copied to clipboard

Connect with no username/password

Open chrisvel opened this issue 7 years ago • 1 comments

Is it possible to connect to a telnet server that has no username/password ? I couldn't find a way to do so - I've tried blank/blank, nil/nil or .login with no arguments but obviously it failed.

chrisvel avatar Feb 28 '17 08:02 chrisvel

Sure :)

Net::Telnet::new("Host" => "localhost") { |telnet| p telnet.cmd "hostname" }

Alexey1100 avatar Mar 06 '17 16:03 Alexey1100