.\"
.\" Created: Sun May 7 00:14:37 1995 ylo
.\"
-.\" $OpenBSD: scp.1,v 1.73 2017/05/02 13:44:51 jmc Exp $
+.\" $OpenBSD: scp.1,v 1.74 2017/05/03 21:49:18 naddy Exp $
.\"
-.Dd $Mdocdate: May 2 2017 $
+.Dd $Mdocdate: May 3 2017 $
.Dt SCP 1
.Os
.Sh NAME
.It CheckHostIP
.It Ciphers
.It Compression
+.It ConnectionAttempts
.It ConnectTimeout
.It ControlMaster
.It ControlPath
-.\" $OpenBSD: sftp.1,v 1.109 2017/05/03 06:32:02 jmc Exp $
+.\" $OpenBSD: sftp.1,v 1.110 2017/05/03 21:49:18 naddy Exp $
.\"
.\" Copyright (c) 2001 Damien Miller. All rights reserved.
.\"
.It CheckHostIP
.It Ciphers
.It Compression
+.It ConnectionAttempts
.It ConnectTimeout
.It ControlMaster
.It ControlPath
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $OpenBSD: ssh.1,v 1.379 2017/05/03 06:32:02 jmc Exp $
+.\" $OpenBSD: ssh.1,v 1.380 2017/05/03 21:49:18 naddy Exp $
.Dd $Mdocdate: May 3 2017 $
.Dt SSH 1
.Os
.It Ciphers
.It ClearAllForwardings
.It Compression
+.It ConnectionAttempts
.It ConnectTimeout
.It ControlMaster
.It ControlPath
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $OpenBSD: ssh_config.5,v 1.246 2017/05/03 21:08:09 naddy Exp $
+.\" $OpenBSD: ssh_config.5,v 1.247 2017/05/03 21:49:18 naddy Exp $
.Dd $Mdocdate: May 3 2017 $
.Dt SSH_CONFIG 5
.Os
or
.Cm no
(the default).
+.It Cm ConnectionAttempts
+Specifies the number of tries (one per second) to make before exiting.
+The argument must be an integer.
+This may be useful in scripts if the connection sometimes fails.
+The default is 1.
.It Cm ConnectTimeout
Specifies the timeout (in seconds) used when connecting to the
SSH server, instead of using the default system TCP timeout.