Skip to main content
Esteemed Contributor III
May 15, 2008 7:12 PM UTC
Question

Can not ssh out from within firewall

I' m using a fortigate 60 . I can make ssh connections to hosts within the firewall. I can ping hosts outside the firewall. I can make a telnet connection to the ssh port (22) on hosts outside the firewall. But when I try to make an ssh connection, the connection attempt hangs and then times out. It hangs at this point: $ ssh -vvv staffknex.com OpenSSH_4.7p1 Debian-8ubuntu1.1, OpenSSL 0.9.8g 19 Oct 2007 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to staffknex.com [64.71.152.155] port 22. debug1: Connection established. debug1: identity file /home/matt/.ssh/identity type -1 debug1: identity file /home/matt/.ssh/id_rsa type -1 debug1: identity file /home/matt/.ssh/id_dsa type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_4.6p1 Debian-5ubuntu0.1 debug1: match: OpenSSH_4.6p1 Debian-5ubuntu0.1 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.7p1 Debian-8ubuntu1.1 debug2: fd 3 setting O_NONBLOCK debug1: SSH2_MSG_KEXINIT sent

    4 replies

    rwpatterson
    New Member
    May 15, 2008 7:20 PM UTC
    Welcome to the forums. What is the firmware (build) version on the unit?
    Translate
    Esteemed Contributor III
    May 15, 2008 7:23 PM UTC
    Hi Bob -- here' s the firmware build FortiWiFi-60B 3.00-b0662(MR6 Patch 1)
    Translate
    rwpatterson
    New Member
    May 15, 2008 8:40 PM UTC
    Oooo, that' s new. Are you sure the remote host is accepting connections for SSH? Never mind... I just checked using Putty from my Windows box, and it worked. It asked me if I wanted to accept the cert. Are you sure that there isn' t a cert error that' s preventing this from working? I' m not familiar with the Linux product you' re using.
    Translate
    Esteemed Contributor III
    May 15, 2008 8:44 PM UTC
    I don' t know if this applies or not but just in case you have not heard: http://isc.sans.org/diary.html?storyid=4420
    Translate
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024