Results 1 to 9 of 9

Thread: SSH port and protocol

  1. #1
    Member
    Join Date
    Jun 2006
    Posts
    74

    Default SSH port and protocol

    How do I change SSH port and protocol?

    I have edited /etc/ssh/sshd_config and /etc/ssh/ssh_config and restarted SSH, but it doesn't work, and users get a Connection Refused error. Is there anywhere else I need to update?
    Last edited by BW -Tim; 08-25-2006 at 03:36 AM.

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    10,053
    cPanel/WHM Access Level

    Root Administrator

    Default

    Port opened on firewall?

  3. #3
    Member
    Join Date
    Jun 2006
    Posts
    74

    Default

    Port open on firewall
    Yup, on both of them
    Last edited by BW -Tim; 08-25-2006 at 07:17 AM.

  4. #4
    Member
    Join Date
    Jun 2006
    Posts
    92

    Post Check file /etc/services

    Check /etc/services

    Also change the ssh line in /etc/services to <portno.>


  5. #5
    Member
    Join Date
    Jun 2006
    Posts
    74

    Default

    I've changed it, but it still doesn't work
    Last edited by BW -Tim; 08-25-2006 at 07:16 AM.

  6. #6
    Member
    Join Date
    Jun 2006
    Posts
    92

    Post Checkout the link

    Go through the following link:

    http://forums.spry.com/showthread.php?t=98

  7. #7
    Member
    Join Date
    Jun 2006
    Posts
    92

    Post Checkout the link

    Go through the following link:

    http://forums.spry.com/showthread.php?t=98


  8. #8
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    665

    Default

    How about editing /etc/xinetd.d/sshd? Find the port line and edit it to new port. Close, restart SSH?

  9. #9
    Member
    Join Date
    Jun 2006
    Posts
    74

    Default

    I didn't have a /etc/xinetd.d/sshd file so created one and put in what that other thread said, and restarted SSH, but it didn't work.

    When I unhash the protocol and port no from ssh_config and sshd_config files, SSH doesn't work, but WHM (specifically configserver firewall security scan) says the port has changed- could this have something to do with it?

Similar Threads

  1. SSH port
    By crazyaboutlinux in forum New User Questions
    Replies: 4
    Last Post: 02-10-2009, 11:59 PM
  2. SSH Port
    By Chriz1977 in forum cPanel & WHM Discussions
    Replies: 11
    Last Post: 11-25-2006, 07:07 AM
  3. changed ssh port - cant login on new port
    By 4u123 in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 03-21-2006, 10:02 AM
  4. SSH port
    By WizCraker in forum cPanel & WHM Discussions
    Replies: 7
    Last Post: 01-22-2005, 05:01 PM
  5. Custom ssh port for CPanel SSH client
    By yaax in forum cPanel & WHM Discussions
    Replies: 13
    Last Post: 10-24-2004, 12:22 PM