Screen OS

last person joined: 8 months ago 

This is a legacy community with limited Juniper monitoring.
  • 1.  SSH disconnect

    Posted 03-30-2009 16:51

     

    Has anyone else ran into the issue of the management SSH on SSG devices closing your connection after entering the password? SSH is enabled and was working perfectly then all of asuden it just starts closing the connection the second I connect. This has happened to me on two SSG5's and a SSG20 now. It just seems to happen over time for no apparent reason.



  • 2.  RE: SSH disconnect

    Posted 03-30-2009 16:59

    Here is ssh -v debug output:

     

    OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006
    debug1: Reading configuration data /etc/ssh_config
    debug1: Connecting to 1.1.1.1 [1.1.1.1] port 22.
    debug1: Connection established.
    debug1: identity file /Users/test/.ssh/identity type -1
    debug1: identity file /Users/test/.ssh/id_rsa type -1
    debug1: identity file /Users/test/.ssh/id_dsa type -1
    debug1: Remote protocol version 2.0, remote software version NetScreen
    debug1: no match: NetScreen
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_5.1
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug1: kex: server->client 3des-cbc hmac-sha1 none
    debug1: kex: client->server 3des-cbc hmac-sha1 none
    debug1: sending SSH2_MSG_KEXDH_INIT
    debug1: expecting SSH2_MSG_KEXDH_REPLY
    debug1: Host '1.1.1.1' is known and matches the DSA host key.
    debug1: Found key in /Users/test/.ssh/known_hosts:16
    debug1: ssh_dss_verify: signature correct
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug1: SSH2_MSG_NEWKEYS received
    debug1: SSH2_MSG_SERVICE_REQUEST sent
    debug1: SSH2_MSG_SERVICE_ACCEPT received
    debug1: Authentications that can continue: password
    debug1: Next authentication method: password
    test@1.1.1.1's password:
    debug1: Authentication succeeded (password).
    debug1: channel 0: new [client-session]
    debug1: Requesting no-more-sessions@openssh.com
    debug1: Entering interactive session.
    debug1: channel 0: free: client-session, nchannels 1
     

    Message Edited by MyNet on 03-30-2009 05:18 PM


  • 3.  RE: SSH disconnect
    Best Answer

    Posted 03-30-2009 17:01

     

    Scratch that, I found the problem (bug with OS X openSSH)

     

     

    Need to connect using:

     

    ssh -oControlMaster=auto

     

     



  • 4.  RE: SSH disconnect

    Posted 10-10-2010 20:24

    netscreen SSH seems to have a few problems.  I've read a putty bug that causes a disconnect after 'save'

     

    My biggest pet peeve though, was the incessent disconnects, which (ironically) were caused by my client's keepalives.