<?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 Re: how to set ssh timeout in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-set-ssh-timeout/m-p/3414262#M14737</link>
    <description>guys I am looking for something similar to rsync 's --timeout options.  I am wondering if something like this is availabe with ssh from the client perspective. Thanks.</description>
    <pubDate>Wed, 03 Nov 2004 16:08:27 GMT</pubDate>
    <dc:creator>K.C. Chan</dc:creator>
    <dc:date>2004-11-03T16:08:27Z</dc:date>
    <item>
      <title>how to set ssh timeout</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-set-ssh-timeout/m-p/3414260#M14735</link>
      <description>All,&lt;BR /&gt;I am having trouble executing remote command via ssh because it takes a long time to timeout if for some reasons there is a network issue during the middle or initial login process.  Is there an option to tell ssh to timeout after so many seconds has passed if I don't get a response from it?  Thanks.</description>
      <pubDate>Wed, 03 Nov 2004 14:13:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-set-ssh-timeout/m-p/3414260#M14735</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2004-11-03T14:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to set ssh timeout</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-set-ssh-timeout/m-p/3414261#M14736</link>
      <description>In the /etc/ssh/sshd_config file is a LoginGraceTime. On my system is commented out. You can put in a value and remember to stop/restart the ssh daemon after making the change.</description>
      <pubDate>Wed, 03 Nov 2004 14:19:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-set-ssh-timeout/m-p/3414261#M14736</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2004-11-03T14:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to set ssh timeout</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-set-ssh-timeout/m-p/3414262#M14737</link>
      <description>guys I am looking for something similar to rsync 's --timeout options.  I am wondering if something like this is availabe with ssh from the client perspective. Thanks.</description>
      <pubDate>Wed, 03 Nov 2004 16:08:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-set-ssh-timeout/m-p/3414262#M14737</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2004-11-03T16:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to set ssh timeout</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-set-ssh-timeout/m-p/3414263#M14738</link>
      <description>Two client side options introduced in ssh 3.8 may be what you are looking for.&lt;BR /&gt;&lt;BR /&gt;ServerAliveInterval&lt;BR /&gt;ServerAliveCountMax&lt;BR /&gt;&lt;BR /&gt;If ServerAliveInterval is set to 15 and ServerAliveCountMax is set to 3 and if the server becomes unresponsive ssh will disconnect after 45 seconds.&lt;BR /&gt;&lt;BR /&gt;man ssh_config for more information (only on 3.8 or later).</description>
      <pubDate>Wed, 03 Nov 2004 19:48:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-set-ssh-timeout/m-p/3414263#M14738</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2004-11-03T19:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to set ssh timeout</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-set-ssh-timeout/m-p/3414264#M14739</link>
      <description>Options given by Ermin are good. If you want to pass them onyour command line (no change to client default conf) you can use the -o option of the ssh command.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Nov 2004 05:11:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-set-ssh-timeout/m-p/3414264#M14739</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-11-04T05:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to set ssh timeout</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-set-ssh-timeout/m-p/3414265#M14740</link>
      <description>This looks good. But one thing that is not clear, does both end (sshd and ssh client) have to be at ssh version 3.8 and later?</description>
      <pubDate>Fri, 05 Nov 2004 16:32:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-set-ssh-timeout/m-p/3414265#M14740</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2004-11-05T16:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to set ssh timeout</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-set-ssh-timeout/m-p/3414266#M14741</link>
      <description>From what I can see only client needs to be at 3.8 or higher.&lt;BR /&gt;&lt;BR /&gt;To test it out you can do the following&lt;BR /&gt;&lt;BR /&gt;client$ ssh -o ServerAliveInterval=15 -o ServerAliveCountMax=3 server&lt;BR /&gt;&lt;BR /&gt;On the server find pid of sshd corresponding to this connection and send it STOP signal.&lt;BR /&gt;&lt;BR /&gt;server# kill -STOP &lt;PID_OF_SSHD&gt;&lt;BR /&gt;&lt;BR /&gt;Client should terminate connection after 45 seconds.&lt;/PID_OF_SSHD&gt;</description>
      <pubDate>Sun, 07 Nov 2004 19:27:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-set-ssh-timeout/m-p/3414266#M14741</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2004-11-07T19:27:45Z</dc:date>
    </item>
  </channel>
</rss>

