To anyone that may have the vast knowledge that I am lacking.

I am creating a socket to connect to a telnet server. The problem is that the server requires a username but not a password.

I cannot find a way to pass the username in a socket connection. I know, I know, Use Net::Telnet. I would but the linux box that I am running off of I do not have access to install modules. I would like to figure out if this is possible or I am forced to find a way to install this to my home directory ?

Any help would be greatly appreciated. Thanks in advance!

Edit:Ended up using the Net::Telnet module installed to my home dir on the linux box.

Side note: ended up changing usernames that I was using as it is much easier to use Net::Telnet if you have a user that also has a password.


In reply to Logging into telnet using a socket by mikeock

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.