Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Using Terminal to connect to a switch.

  1. #11
    Join Date
    May 2010
    Beans
    145

    Re: Using Terminal to connect to a switch.

    Quote Originally Posted by jonobr View Post
    Something sounds messed up in your path

    Normally the telnet client is in
    /usr/bin
    You should be able to run telnet as a regular user.

    this is normally in your user path so when you type in telnet it looks in the local directory your in and then in your path.

    Because it works with sudo and not as a regular user (which it should) it makes me think your path is incorrect.



    Here is how you can test
    in the terminal type

    Code:
    which telnet
    it should come back and say

    /usr/bin/telnet or something similar

    then type
    Code:
    echo $PATH
    if /usr/bin is not in your path then thats why its not running as
    a regular user.

    If it is in your path and its still not working then someone was monkeying around with permissions

    In that case, take a look at the permissions of telnet
    Code:
    ls -l /usr/bin/telnet
    it should show the permissions like this


    or similar
    My which telnet came back correct, but my echo $PATH says /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games.

    On a second note I installed Putty and tried to connect the same way I do with windows version of putty and it timed out. However, I can do it on a windows machine right now the same way.

    I am confused.

  2. #12
    Join Date
    May 2010
    Beans
    145

    Re: Using Terminal to connect to a switch.

    I think it is something on my network. I will dig around and post later. Thanks for all the help.

  3. #13
    Join Date
    Nov 2006
    Location
    Craggy Island.
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Using Terminal to connect to a switch.

    Hey there


    Try posting the results of
    ls -l /usr/bin/telnet

    Im wondering if your permissions are wrong

    Im guessing also if you sudo telnet <ip address> to the machine you want that this works?

    Cheers
    You can tell a man who boozes by the company he chooses, as the pig got up and slowly walked away.

  4. #14
    Join Date
    May 2010
    Beans
    145

    Re: Using Terminal to connect to a switch.

    Nope that does not either.

    Also, I do not have to sudo to the star wars telnet. I am thinking I mistyped it the first time or something.

    My problems seem to be on my network.

    I am on the wrong vlan I believe. I never try to do it wired and I cannot make the new version of Ubuntu work with this wireless cards.

    I am about to swap to my other machine though and I should be fine.

    I'll post later.

  5. #15
    Join Date
    Nov 2006
    Location
    Craggy Island.
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Using Terminal to connect to a switch.

    Ok, I misunderstood you
    I thought you said it worked when you went sudo.

    If you do a telnet to anything that doesnt exist
    eg 50.50.50.50

    does it at least say trying?

    Can you ping the remote server your trying to connect to?

    I also though you mentioned ssh was ok?

    Is that still the case?
    You can tell a man who boozes by the company he chooses, as the pig got up and slowly walked away.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •