ssh -o ConnectTimeout=10 <hostName>
Where 10 is time in seconds. This Timeout applies only to the creation of the connection.
Related Posts:
- Meaning of “! -S” in shell script
- “No such file or directory” but it exists
- How do I split a string on a delimiter in Bash?
- Ubuntu says “bash: ./program Permission denied” [closed]
- Should I put #! (shebang) in Python scripts, and what form should it take?
- Should I put #! (shebang) in Python scripts, and what form should it take?
- How do I copy a folder from remote to local using scp?
- How to concatenate string variables in Bash
- -bash: syntax error near unexpected token `)’
- An example of how to use getopts in bash
- How to delete from a text file, all lines that contain a specific string?
- How to mkdir only if a directory does not already exist?
- How do I iterate over a range of numbers defined by variables in Bash?
- commands not found on zsh
- sudo: apt-get: command not found
- How do I iterate over a range of numbers defined by variables in Bash?
- Why do people write #!/usr/bin/env python on the first line of a Python script?
- How to mkdir only if a directory does not already exist?
- Using find to locate files that match one of multiple patterns
- “unary operator expected” error in Bash if condition
- What does “-ne” mean in bash?
- Is there a Python equivalent to the ‘which’ command
- How to generate random number in Bash?
- How to check if a variable is set in Bash?
- Pseudo-terminal will not be allocated because stdin is not a terminal
- Who can access a file with octal permissions “000” on Linux/UNIX?
- How can I compare numbers in Bash?
- What does the line “#!/bin/sh” mean in a UNIX shell script?
- Open and write data to text file using Bash?
- Pseudo-terminal will not be allocated because stdin is not a terminal
- How do I set a variable to the output of a command in Bash?
- python getoutput() equivalent in subprocess
- What is the $? (dollar question mark) variable in shell scripting?
- Is there a TRY CATCH command in Bash
- dquote> result of a execution a program in linux shell
- Using sudo with Python script
- how to fix the issue “Command /bin/sh failed with exit code 1” in iphone
- Run a string as a command within a Bash script
- conditional binary operator expected in shell script
- How to specify the private SSH-key to use when executing shell command on Git?
- Block Comments in a Shell Script
- How to get a shell environment variable in a makefile?
- What are the uses of the exec command in shell scripts?
- using rot13 and tr command for having an encrypted email address
- Shell Script: Execute a python program from within a shell script
- sed whole word search and replace
- What’s the difference betwen the single dash and double dash flags on shell commands?
- How to let ‘cp’ command don’t fire an error when source file does not exist?
- What is a reverse shell?
- Where to place $PATH variable assertions in zsh?
- How do I use a regex in a shell script?
- ssh remote host identification has changed
- Putty: Getting Server refused our key Error
- How to perform grep operation on all files in a directory?
- Loop through an array of strings in Bash?
- ‘\r’: command not found – .bashrc / .bash_profile [duplicate]
- OS X: equivalent of Linux’s wget
- How to substitute shell variables in complex text files
- ssh “permissions are too open” error
- How can I declare and use Boolean variables in a shell script?
- “[ ]” vs. “[[ ]]” in Bash shell
- ssh: Could not resolve hostname [hostname]: nodename nor servname provided, or not known
- What is actually in known_hosts?
- Elegant way to search for UTF-8 files with BOM?
- java.net.SocketTimeoutException: Read timed out under Tomcat
- ‘heroku’ does not appear to be a git repository
- What is the difference between “#!/usr/bin/env bash” and “#!/usr/bin/bash”?
- Is there a “goto” statement in bash?
- Forward X11 failed: Network error: Connection refused
- Command to change the default home directory of a user
- Convert PEM to PPK file format
- How to read iPhone files without jailbreaking?
- Specify an SSH key for git push for a given domain
- How to ssh from within a bash script?
- Integer expression expected error in shell script
- How can I use WP-CLI commands without –allow-root
- How to configure WP filesystem access in Linux (Ubuntu Server)?
- WP-CLI alias: connect with ssh proxy
- WPTerm ssh connection not working [closed]
- After upgrade to php 7 plugin/them updates broke [closed]
- How to set intervals in cron jobs?
- Index.php using 100% CPU [closed]
- WordPress Redirects to a cancelled domain, need to change it but can’t get to the admin portal
- Force Jetpack to use og:url with http on an https website
- I can’t login to wordpress dashboard without SSH
- ssh returns “Bad owner or permissions on ~/.ssh/config”
- How do I change my private key passphrase?
- Create a public SSH key from the private key?
- Is it normal to get hundreds of break-in attempts per day?
- How do I make ssh fail rather than prompt for a password if the public-key authentication fails?
- how do you create an ssh key for another user?
- SSH Suddenly returning Invalid format
- How to run command as user who has /usr/sbin/nologin as Shell?
- Login without running bash_profile or bashrc
- Add comment to existing SSH public key
- ssh connection takes forever to initiate, stuck at “pledge: network”
- protocol version mismatch — is your shell clean?
- How do I join two named pipes into single input stream in linux
- How can I set a short timeout with the ping command?
- Why is ssh agent forwarding not working?