<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Receiving &amp;quot;*** IDLE TIMEOUT ***&amp;quot; when running commands over SSH via bastion/jump server in Data Center (SLX)</title>
    <link>https://community.extremenetworks.com/t5/data-center-slx/receiving-quot-idle-timeout-quot-when-running-commands-over-ssh/m-p/98120#M462</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to automate execution of some of the "show ***" command, i.e. "show clock", on the switches in my network, SLX-OS 20.5.1b, but need to ssh to the switch via a bastion/jump server. I'm using python paramiko module to ssh and automate the running of the scripts. Unfortunately, while I appear to be connecting to the remote site and can login, my command, i.e. "show clock" is never executed and I end up with the following output ( I've redacted site info with &amp;lt;text&amp;gt; )&lt;/P&gt;&lt;P&gt;Contacting: 1&amp;lt;slx ip&amp;gt;&lt;BR /&gt;['show clock Last login: Mon Nov 27 05:14:53 2023 from &amp;lt;bastion IP&amp;gt;\r\n', 'Unsuccessful attempts: 0 since last login.\r\n', '\r\n', 'SECURITY WARNING: The default password for at least\r\n', 'one default account (root, admin and user) have not been changed.\r\n', '\r\n', 'Welcome to the Extreme SLX-OS Software\r\n', 'admin connected from &amp;lt;bastion IP&amp;gt; using ssh on N170SLX-BLB\r\n', '\x1b[?7h&amp;lt;SLX Name&amp;gt;# \r\n', '*** IDLE TIMEOUT ***\r\n']&lt;/P&gt;&lt;P&gt;I have searched the internet and found this similar issue and tried to use asyncio and asyncssh but I still end up with a failure.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ronf/asyncssh/issues/567" target="_blank"&gt;https://github.com/ronf/asyncssh/issues/567&lt;/A&gt;&lt;/P&gt;&lt;P&gt;DEBUG:asyncio:Using selector: EpollSelector&lt;BR /&gt;&amp;lt;bastion IP&amp;gt; 22 &amp;lt;bastion user&amp;gt; &amp;lt;bastion password&amp;gt; &amp;lt;slx IP&amp;gt; 22 &amp;lt;slx user&amp;gt; &amp;lt;slx password&amp;gt;&lt;BR /&gt;DEBUG:asyncssh:Reading config from "/home/cna/.ssh/config"&lt;BR /&gt;DEBUG:asyncssh:Reading config from "/home/cna/.ssh/config.d/...."&lt;BR /&gt;INFO:asyncssh:Opening SSH connection to &amp;lt;bastion IP&amp;gt;, port 22&lt;BR /&gt;INFO:asyncssh:[conn=0] Connected to SSH server at &amp;lt;bastion IP&amp;gt;, port 22&lt;BR /&gt;INFO:asyncssh:[conn=0] Local address: 10.233.70.115, port 39820&lt;BR /&gt;INFO:asyncssh:[conn=0] Peer address: &amp;lt;bastion IP&amp;gt;, port 22&lt;BR /&gt;DEBUG:asyncssh:[conn=0] Sending version SSH-2.0-AsyncSSH_2.14.1&lt;BR /&gt;DEBUG:asyncssh:[conn=0] Received version SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.7&lt;BR /&gt;DEBUG:asyncssh:[conn=0] Requesting key exchange&lt;BR /&gt;DEBUG:asyncssh:[conn=0] Received key exchange request&lt;BR /&gt;DEBUG:asyncssh:[conn=0] Beginning key exchange&lt;BR /&gt;DEBUG:asyncssh:[conn=0] Completed key exchange&lt;BR /&gt;INFO:asyncssh:[conn=0] Beginning auth for user extreme&lt;BR /&gt;DEBUG:asyncssh:[conn=0] Trying public key auth with rsa-sha2-256 key&lt;BR /&gt;DEBUG:asyncssh:[conn=0] Signing request with rsa-sha2-256 key&lt;BR /&gt;INFO:asyncssh:[conn=0] Auth for user extreme succeeded&lt;BR /&gt;DEBUG:asyncssh:Reading config from "/home/..."&lt;BR /&gt;DEBUG:asyncssh:Reading config from "/home/....."&lt;BR /&gt;INFO:asyncssh:[conn=0] Opening SSH connection to &amp;lt;slx IP&amp;gt;, port 22 via SSH tunnel&lt;BR /&gt;INFO:asyncssh:[conn=0] Opening direct TCP connection to &amp;lt;slx IP&amp;gt;, port 22&lt;BR /&gt;INFO:asyncssh:[conn=0] Client address: dynamic port&lt;BR /&gt;DEBUG:asyncssh:[conn=0, chan=0] Set write buffer limits: low-water=16384, high-water=65536&lt;BR /&gt;DEBUG:asyncssh:[conn=0] Received unknown global request: hostkeys-00@openssh.com&lt;BR /&gt;INFO:asyncssh:[conn=1] Connected to SSH server at &amp;lt;slx IP&amp;gt;, port 22&lt;BR /&gt;INFO:asyncssh:[conn=1] Local address: 10.233.70.115, port 39820&lt;BR /&gt;INFO:asyncssh:[conn=1] Peer address: dynamic port&lt;BR /&gt;DEBUG:asyncssh:[conn=1] Sending version SSH-2.0-AsyncSSH_2.14.1&lt;BR /&gt;DEBUG:asyncssh:[conn=1] Received version SSH-2.0-OpenSSH_7.5 PKIX[10.2]&lt;BR /&gt;DEBUG:asyncssh:[conn=1] Requesting key exchange&lt;BR /&gt;DEBUG:asyncssh:[conn=1] Received key exchange request&lt;BR /&gt;DEBUG:asyncssh:[conn=1] Beginning key exchange&lt;BR /&gt;DEBUG:asyncssh:[conn=1] Completed key exchange&lt;BR /&gt;INFO:asyncssh:[conn=1] Beginning auth for user admin&lt;BR /&gt;DEBUG:asyncssh:[conn=1] Received authentication banner&lt;BR /&gt;DEBUG:asyncssh:[conn=1] Trying public key auth with rsa-sha2-256 key&lt;BR /&gt;DEBUG:asyncssh:[conn=1] Trying password auth&lt;BR /&gt;INFO:asyncssh:[conn=1] Auth for user admin succeeded&lt;BR /&gt;DEBUG:asyncssh:[conn=1, chan=0] Set write buffer limits: low-water=16384, high-water=65536&lt;BR /&gt;INFO:asyncssh:[conn=1, chan=0] Requesting new SSH session&lt;BR /&gt;DEBUG:asyncssh:[conn=1] Received unknown global request: hostkeys-00@openssh.com&lt;BR /&gt;INFO:asyncssh:[conn=1, chan=0] Command: show clock&lt;BR /&gt;Result 1 stdout in 0:00:00.070467: Last login: Mon Nov 27 14:14:25 2023 from 192.168.246.11&lt;BR /&gt;Unsuccessful attempts: 0 since last login.&lt;/P&gt;&lt;P&gt;INFO:asyncssh:[conn=1, chan=0] Closing channel&lt;BR /&gt;INFO:asyncssh:[conn=1, chan=0] Received exit status 0&lt;BR /&gt;INFO:asyncssh:[conn=1, chan=0] Received channel close&lt;BR /&gt;INFO:asyncssh:[conn=1, chan=0] Channel closed&lt;BR /&gt;INFO:asyncssh:[conn=1] Closing connection&lt;BR /&gt;INFO:asyncssh:[conn=1] Sending disconnect: Disconnected by application (11)&lt;BR /&gt;INFO:asyncssh:[conn=0, chan=0] Aborting channel&lt;BR /&gt;INFO:asyncssh:[conn=1] Connection closed&lt;BR /&gt;INFO:asyncssh:[conn=0] Closing connection&lt;BR /&gt;INFO:asyncssh:[conn=0, chan=0] Closing channel&lt;BR /&gt;INFO:asyncssh:[conn=0] Sending disconnect: Disconnected by application (11)&lt;BR /&gt;INFO:asyncssh:[conn=0] Connection closed&lt;BR /&gt;INFO:asyncssh:[conn=0, chan=0] Closing channel due to connection close&lt;BR /&gt;INFO:asyncssh:[conn=0, chan=0] Channel closed&lt;/P&gt;&lt;P&gt;Note that I'm able to ssh to the bastion and through the bastion to the switch and run commands but this is not possible in the production environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Nov 2023 13:20:07 GMT</pubDate>
    <dc:creator>AlfredForbrich</dc:creator>
    <dc:date>2023-11-27T13:20:07Z</dc:date>
    <item>
      <title>Receiving "*** IDLE TIMEOUT ***" when running commands over SSH via bastion/jump server</title>
      <link>https://community.extremenetworks.com/t5/data-center-slx/receiving-quot-idle-timeout-quot-when-running-commands-over-ssh/m-p/98120#M462</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to automate execution of some of the "show ***" command, i.e. "show clock", on the switches in my network, SLX-OS 20.5.1b, but need to ssh to the switch via a bastion/jump server. I'm using python paramiko module to ssh and automate the running of the scripts. Unfortunately, while I appear to be connecting to the remote site and can login, my command, i.e. "show clock" is never executed and I end up with the following output ( I've redacted site info with &amp;lt;text&amp;gt; )&lt;/P&gt;&lt;P&gt;Contacting: 1&amp;lt;slx ip&amp;gt;&lt;BR /&gt;['show clock Last login: Mon Nov 27 05:14:53 2023 from &amp;lt;bastion IP&amp;gt;\r\n', 'Unsuccessful attempts: 0 since last login.\r\n', '\r\n', 'SECURITY WARNING: The default password for at least\r\n', 'one default account (root, admin and user) have not been changed.\r\n', '\r\n', 'Welcome to the Extreme SLX-OS Software\r\n', 'admin connected from &amp;lt;bastion IP&amp;gt; using ssh on N170SLX-BLB\r\n', '\x1b[?7h&amp;lt;SLX Name&amp;gt;# \r\n', '*** IDLE TIMEOUT ***\r\n']&lt;/P&gt;&lt;P&gt;I have searched the internet and found this similar issue and tried to use asyncio and asyncssh but I still end up with a failure.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ronf/asyncssh/issues/567" target="_blank"&gt;https://github.com/ronf/asyncssh/issues/567&lt;/A&gt;&lt;/P&gt;&lt;P&gt;DEBUG:asyncio:Using selector: EpollSelector&lt;BR /&gt;&amp;lt;bastion IP&amp;gt; 22 &amp;lt;bastion user&amp;gt; &amp;lt;bastion password&amp;gt; &amp;lt;slx IP&amp;gt; 22 &amp;lt;slx user&amp;gt; &amp;lt;slx password&amp;gt;&lt;BR /&gt;DEBUG:asyncssh:Reading config from "/home/cna/.ssh/config"&lt;BR /&gt;DEBUG:asyncssh:Reading config from "/home/cna/.ssh/config.d/...."&lt;BR /&gt;INFO:asyncssh:Opening SSH connection to &amp;lt;bastion IP&amp;gt;, port 22&lt;BR /&gt;INFO:asyncssh:[conn=0] Connected to SSH server at &amp;lt;bastion IP&amp;gt;, port 22&lt;BR /&gt;INFO:asyncssh:[conn=0] Local address: 10.233.70.115, port 39820&lt;BR /&gt;INFO:asyncssh:[conn=0] Peer address: &amp;lt;bastion IP&amp;gt;, port 22&lt;BR /&gt;DEBUG:asyncssh:[conn=0] Sending version SSH-2.0-AsyncSSH_2.14.1&lt;BR /&gt;DEBUG:asyncssh:[conn=0] Received version SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.7&lt;BR /&gt;DEBUG:asyncssh:[conn=0] Requesting key exchange&lt;BR /&gt;DEBUG:asyncssh:[conn=0] Received key exchange request&lt;BR /&gt;DEBUG:asyncssh:[conn=0] Beginning key exchange&lt;BR /&gt;DEBUG:asyncssh:[conn=0] Completed key exchange&lt;BR /&gt;INFO:asyncssh:[conn=0] Beginning auth for user extreme&lt;BR /&gt;DEBUG:asyncssh:[conn=0] Trying public key auth with rsa-sha2-256 key&lt;BR /&gt;DEBUG:asyncssh:[conn=0] Signing request with rsa-sha2-256 key&lt;BR /&gt;INFO:asyncssh:[conn=0] Auth for user extreme succeeded&lt;BR /&gt;DEBUG:asyncssh:Reading config from "/home/..."&lt;BR /&gt;DEBUG:asyncssh:Reading config from "/home/....."&lt;BR /&gt;INFO:asyncssh:[conn=0] Opening SSH connection to &amp;lt;slx IP&amp;gt;, port 22 via SSH tunnel&lt;BR /&gt;INFO:asyncssh:[conn=0] Opening direct TCP connection to &amp;lt;slx IP&amp;gt;, port 22&lt;BR /&gt;INFO:asyncssh:[conn=0] Client address: dynamic port&lt;BR /&gt;DEBUG:asyncssh:[conn=0, chan=0] Set write buffer limits: low-water=16384, high-water=65536&lt;BR /&gt;DEBUG:asyncssh:[conn=0] Received unknown global request: hostkeys-00@openssh.com&lt;BR /&gt;INFO:asyncssh:[conn=1] Connected to SSH server at &amp;lt;slx IP&amp;gt;, port 22&lt;BR /&gt;INFO:asyncssh:[conn=1] Local address: 10.233.70.115, port 39820&lt;BR /&gt;INFO:asyncssh:[conn=1] Peer address: dynamic port&lt;BR /&gt;DEBUG:asyncssh:[conn=1] Sending version SSH-2.0-AsyncSSH_2.14.1&lt;BR /&gt;DEBUG:asyncssh:[conn=1] Received version SSH-2.0-OpenSSH_7.5 PKIX[10.2]&lt;BR /&gt;DEBUG:asyncssh:[conn=1] Requesting key exchange&lt;BR /&gt;DEBUG:asyncssh:[conn=1] Received key exchange request&lt;BR /&gt;DEBUG:asyncssh:[conn=1] Beginning key exchange&lt;BR /&gt;DEBUG:asyncssh:[conn=1] Completed key exchange&lt;BR /&gt;INFO:asyncssh:[conn=1] Beginning auth for user admin&lt;BR /&gt;DEBUG:asyncssh:[conn=1] Received authentication banner&lt;BR /&gt;DEBUG:asyncssh:[conn=1] Trying public key auth with rsa-sha2-256 key&lt;BR /&gt;DEBUG:asyncssh:[conn=1] Trying password auth&lt;BR /&gt;INFO:asyncssh:[conn=1] Auth for user admin succeeded&lt;BR /&gt;DEBUG:asyncssh:[conn=1, chan=0] Set write buffer limits: low-water=16384, high-water=65536&lt;BR /&gt;INFO:asyncssh:[conn=1, chan=0] Requesting new SSH session&lt;BR /&gt;DEBUG:asyncssh:[conn=1] Received unknown global request: hostkeys-00@openssh.com&lt;BR /&gt;INFO:asyncssh:[conn=1, chan=0] Command: show clock&lt;BR /&gt;Result 1 stdout in 0:00:00.070467: Last login: Mon Nov 27 14:14:25 2023 from 192.168.246.11&lt;BR /&gt;Unsuccessful attempts: 0 since last login.&lt;/P&gt;&lt;P&gt;INFO:asyncssh:[conn=1, chan=0] Closing channel&lt;BR /&gt;INFO:asyncssh:[conn=1, chan=0] Received exit status 0&lt;BR /&gt;INFO:asyncssh:[conn=1, chan=0] Received channel close&lt;BR /&gt;INFO:asyncssh:[conn=1, chan=0] Channel closed&lt;BR /&gt;INFO:asyncssh:[conn=1] Closing connection&lt;BR /&gt;INFO:asyncssh:[conn=1] Sending disconnect: Disconnected by application (11)&lt;BR /&gt;INFO:asyncssh:[conn=0, chan=0] Aborting channel&lt;BR /&gt;INFO:asyncssh:[conn=1] Connection closed&lt;BR /&gt;INFO:asyncssh:[conn=0] Closing connection&lt;BR /&gt;INFO:asyncssh:[conn=0, chan=0] Closing channel&lt;BR /&gt;INFO:asyncssh:[conn=0] Sending disconnect: Disconnected by application (11)&lt;BR /&gt;INFO:asyncssh:[conn=0] Connection closed&lt;BR /&gt;INFO:asyncssh:[conn=0, chan=0] Closing channel due to connection close&lt;BR /&gt;INFO:asyncssh:[conn=0, chan=0] Channel closed&lt;/P&gt;&lt;P&gt;Note that I'm able to ssh to the bastion and through the bastion to the switch and run commands but this is not possible in the production environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 13:20:07 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/data-center-slx/receiving-quot-idle-timeout-quot-when-running-commands-over-ssh/m-p/98120#M462</guid>
      <dc:creator>AlfredForbrich</dc:creator>
      <dc:date>2023-11-27T13:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving "*** IDLE TIMEOUT ***" when running commands over SSH via bastion/jump serve</title>
      <link>https://community.extremenetworks.com/t5/data-center-slx/receiving-quot-idle-timeout-quot-when-running-commands-over-ssh/m-p/98126#M463</link>
      <description>&lt;P&gt;It appears that I can work around my issue using the paramiko invoke_shell() function&lt;/P&gt;&lt;P&gt;proxy_jump_command='ssh -W {HOST}:{PORT} &amp;lt;bastion ssh info&amp;gt;'.format(HOST=slxAddress,PORT='22')&lt;BR /&gt;proxy=paramiko.ProxyCommand(proxy_jump_command)&lt;/P&gt;&lt;P&gt;try:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ssh_client.connect(slxAddress, username='&amp;lt;slx user&amp;gt;', password='&amp;lt;slx user password&amp;gt;', sock=proxy )&lt;/P&gt;&lt;P&gt;except Exception as e:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; print("exception: {}".format(e))&lt;/P&gt;&lt;P&gt;if ssh_client.get_transport() is not None:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ssh_client.get_transport().is_active()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if ( debug &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; print("connected: {}".format(ssh_client.get_transport().is_active()))&lt;BR /&gt;remote_conn = ssh_client.invoke_shell()&lt;BR /&gt;remote_conn.send('\r')&lt;BR /&gt;output = remote_conn.recv(65535)&lt;BR /&gt;time.sleep(0.5)&lt;/P&gt;&lt;P&gt;for cmd in slxcli_command_list :&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;cmd = cmd + "\r"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;try:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;remote_conn.send(cmd)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;time.sleep(5.0)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; output = remote_conn.recv(65535)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;except Exception as e:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print("Exception: {}".format(e))&lt;BR /&gt;&amp;nbsp; &amp;nbsp; print("output: {}".format(output))&lt;BR /&gt;ssh_client.close()&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 14:57:29 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/data-center-slx/receiving-quot-idle-timeout-quot-when-running-commands-over-ssh/m-p/98126#M463</guid>
      <dc:creator>AlfredForbrich</dc:creator>
      <dc:date>2023-11-27T14:57:29Z</dc:date>
    </item>
  </channel>
</rss>

