Results 1 to 3 of 3

Thread: telnet 127.0.0.1 22 not working after changing port from 56786 to port 22 on linux

  1. #1
    Join Date
    Jun 2013
    Beans
    0

    telnet 127.0.0.1 22 not working after changing port from 56786 to port 22 on linux

    we have change the port from network end of linuxserver from 56786 to port 22.now i am not able to telnet from port 22.i am getting below error :
    telnet 127.0.0.1 22
    Trying 127.0.0.1...
    telnet: connect to address 127.0.0.1: Connection refused
    telnet: Unable to connect to remote host: Connection refused

  2. #2
    Join Date
    Jun 2013
    Location
    Canada
    Beans
    136
    Distro
    Kubuntu 13.04 Raring Ringtail

    Re: telnet 127.0.0.1 22 not working after changing port from 56786 to port 22 on linu

    Ports below 1024 are privileged and only servers running as root can use those. Does the server run as a normal user maybe?
    You can check using
    Code:
    ps aux
    That will list all the processes, including the user information. If your server isn't running as root, then that is the problem.

  3. #3
    Join Date
    Sep 2006
    Beans
    7,015
    Distro
    Lubuntu Development Release

    Re: telnet 127.0.0.1 22 not working after changing port from 56786 to port 22 on linu

    Quote Originally Posted by omkar jadhav View Post
    we have change the port from network end of linuxserver from 56786 to port 22.now i am not able to telnet from port 22.i am getting below error :
    telnet 127.0.0.1 22
    Trying 127.0.0.1...
    telnet: connect to address 127.0.0.1: Connection refused
    telnet: Unable to connect to remote host: Connection refused
    Can you go into more detail about what you changed and how it was before you changed it?

    Port 22 is for ssh and if you telnet to it, if sshd is running, then you should see some output like this:

    Code:
    $ telnet 127.0.0.1 22
    Trying 127.0.0.1...
    Connected to 127.0.0.1.
    Escape character is '^]'.
    SSH-2.0-OpenSSH_6.2p2 Debian-4

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
  •