Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    May 2003
    Posts
    6

    Default Outgoing SSH Port

    How do I set my outgoing SSH port, I would have thought it would been port 22, just as it is by default incoming, but looking at my firewall logs, its blocking my outgoing SSH connections, which always have a source port of a random high range number.

    Google seems to be a pain in the butt searching for "outgoing ssh port" or "source ssh port" with all the tunnelling threads, otherwise I would have fixed this by now.

    I had changed my incoming SSH port to a non standard port, but reverting it to port 22 did not solve anything (no surprise there), is there some configuration I can set? Do other people have their SSH outgo with port 22 or does it use a random high range like mine? I obviously do not want to disable the firewall or allow all outgoing ports if I only need to allow one port.

    Thank you.

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Doesn't work like that. Your ssh connection will be going out on port 22 unless you change it with the -p switch on the remote server, you will always have an ephemeral local port that you're connecting from. You should only need port 22 TCP outgoing open in your firewall for it to work.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Massive outgoing UDP traffic port 53
    By whplus in forum Security
    Replies: 1
    Last Post: 11-05-2010, 06:33 AM
  2. Block port 25 outgoing but let Exim still connect ?
    By driverC in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 07-15-2009, 09:17 AM
  3. Feature that blocks outgoing port 25
    By eduardosilva in forum E-mail Discussions
    Replies: 2
    Last Post: 06-15-2009, 09:48 AM
  4. changed ssh port - cant login on new port
    By 4u123 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 03-21-2006, 11:02 AM
  5. Custom ssh port for CPanel SSH client
    By yaax in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 10-24-2004, 01:22 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube