The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SSH webclient connect port

Discussion in 'General Discussion' started by myrem, Oct 1, 2003.

  1. myrem

    myrem Well-Known Member

    Joined:
    Jul 14, 2002
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    Where in the cpanel configs can I change the port the SSH java client will attempt to connect to? I moved the SSHD to listen on a high port, but i can't seem to find where cpanel is passing the"22" to the web SSH client.

    Thanks.

    cPanel.net Support Ticket Number:
     
  2. mickeymouse

    mickeymouse Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    389
    Likes Received:
    0
    Trophy Points:
    16
    Dear myrem,

    Change the ssh port in the file /etc/ssh/sshd_config and restart sshd.

    Regards,
     
  3. bveditz

    bveditz Registered

    Joined:
    Nov 16, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I'm looking for the answer to this and noticed it wasn't really answered... so, I'll rephrase the original persons question :)

    After changing the ssh port in sshd_config, where in the cpanel files does one change the webclient so that when a client goes into the ssh portion of cpanel it'll use the correct port. The javaclient cpanel uses defaults to 22, and I can't find where to change that...
     
  4. bveditz

    bveditz Registered

    Joined:
    Nov 16, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    nevermind...

    /usr/local/cpanel/java-sys/ssh-cp.conf

    Change

    Socket.Port = 22

    to the new port.

    It also doesn't appear to work if you turn change protocol 2,1 in sshd_config to protocol 2 only... Guess the java client uses 1... dunno...
     
Loading...

Share This Page