Results 1 to 4 of 4

Thread: unable to configure ssh

  1. #1
    Join Date
    Jun 2011

    unable to configure ssh

    Hi, I am attempting to secure a vps server i got through a cloud hosting company by editing sshd_config.
    To test this method I changed the port from 22 to 2223 and restarted ssh using

    sudo /etc/init.d/ssh restart
    I then checked to see if ssh was listening on this port with

    sudo ss -lnp | grep sshd
    which shows

    0 128 :::2223 :::* users: (("sshd",1357,4))
    0 128 *:2223 *:* users: (("sshd",1357,3))

    However when I try to connect from my laptop using port 2223 i get "connection refused"
    I can only connect on port 22 using the hosting companies generated console username but I don't want anyone to be able to connect on port 22.

    Any insight into what is going on would be much appreciated.

    Thank you.

  2. #2
    Join Date
    Aug 2010
    Between Heatsink and CPU
    Ubuntu 10.04 Lucid Lynx

    Re: unable to configure ssh

    Is it possible your server is behind the company's firewall that would block your requests on port 2223 ? If they/you have a firewall and did not allow the port to be forwarded, that would be the reason.

    ** My Blog

  3. #3
    pricetech is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Apr 2008

    Re: unable to configure ssh

    Check the documentation from the hosting company. You may be required to use the default port.

  4. #4
    Join Date
    Jun 2011

    Re: unable to configure ssh

    Thank you for your replies, I will check with the hosting company.

Tags for this Thread


Posting Permissions

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