Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Net
/
Telnet
/
//opt/alt/ruby21/share/ri/2.1.0/system/Net/Telnet/login-i.ri
U:RDoc::AnyMethod[iI" login:EFI"Net::Telnet#login;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I":Login to the host with a given username and password.;To:RDoc::Markup::BlankLine o; ; [I"DThe username and password can either be provided as two string ;TI"@arguments in that order, or as a hash with keys "Name" and ;TI""Password".;T@o; ; [ I"GThis method looks for the strings "login" and "Password" from the ;TI"Ghost to determine when to send the username and password. If the ;TI"Dlogin sequence does not follow this pattern (for instance, you ;TI"Care connecting to a service other than telnet), you will need ;TI"to handle login yourself.;T@o; ; [ I"1The password can be omitted, either by only ;TI"Gprovided one String argument, which will be used as the username, ;TI"For by providing a has that has no "Password" key. In this case, ;TI"Cthe method will not look for the "Password:" prompt; if it is ;TI"8sent, it will have to be dealt with by later calls.;T@o; ; [ I"HThe method returns all data received during the login process from ;TI"Ithe host, including the echoed username but not the password (which ;TI"Hthe host should not echo). If a block is passed in, this received ;TI"9data is also yielded to the block as it is received.;T: @fileI"lib/net/telnet.rb;T:0@omit_headings_from_table_of_contents_below00I" recvdata;F[ I"(options, password = nil);T@(FI"Telnet;TcRDoc::NormalClass00