Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jan 2006
    Posts
    654

    Default changed ssh port - cant login on new port

    Hi, I'm puzzled.

    I've edited /etc/ssh/sshd_config and changed the ssh port - Ive edited etc/apf/conf.apf and removed port 22 and added the new port.

    I restarted both services.

    If I try to ssh to the server I now get connection refused.

    What did I miss ?

  2. #2
    Member
    Join Date
    Apr 2005
    Posts
    318
    http://www.crohoster.com/
    quality hosting services and managed dedicated servers

  3. #3
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    Restarting APF might not be enough. You may have to flush iptables as well.

    /etc/apf/apf -f
    /etc/apf/apf -r

    See if that does the trick...

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jan 2006
    Posts
    654

    Default

    You wont believe what I did!

    I changed the port in the ssh config file but I didnt notice that it was actually commented out!

    So when I tried to login on the new port - I couldnt because the default port was still being used.

    I feel stupid haha

    Thanks for your help all the same!


  5. #5
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    That would do it! Glad you worked it out.

Similar Threads & Tags
Similar threads

  1. How to change SSH login port, How to change SSH login port
    By Pvnallly in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-05-2011, 04:11 PM
  2. How to change SSH login port, How to change SSH login port
    By Pvnallly in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-17-2011, 01:56 AM
  3. Changed FTP port Now Getting ftpd fail emaisl
    By mimran in forum Security
    Replies: 7
    Last Post: 11-20-2010, 11:50 AM
  4. Changed sshd port problem
    By fuzzie in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-19-2006, 09:55 AM
  5. Custom ssh port for CPanel SSH client
    By yaax in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 10-24-2004, 12:22 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube