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?
- How to use execvp()
- How to use execvp() to execute a command
- What is a reverse shell?
- How do I pause my shell script for a second before continuing?
- ssh : Permission denied (publickey,gssapi-with-mic)
- ssh connect Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)
- How to execute a program or call a system command?
- In the shell, what does ” 2>&1 ” mean?
- Extract substring in Bash
- Where to place $PATH variable assertions in zsh?
- Git: How to solve Permission denied (publickey) error when using Git?
- Could not open a connection to your authentication agent
- In the shell, what does ” 2>&1 ” mean?
- How do I use a regex in a shell script?
- How to grep for case insensitive string in a file?
- Could not open a connection to your authentication agent
- ssh remote host identification has changed
- Difference between wait and sleep
- How to establish ssh key pair when “Host key verification failed”
- Multi-line string with extra space (preserved indentation)
- Putty: Getting Server refused our key Error
- Copying a local file from Windows to a remote server using scp
- AWS – Disconnected : No supported authentication methods available (server sent :publickey)
- Multi-line string with extra space (preserved indentation)
- ‘\r’: command not found – .bashrc / .bash_profile [duplicate]
- How can I recursively find all files in current and subfolders based on wildcard matching?
- How to perform grep operation on all files in a directory?
- Loop through an array of strings in Bash?
- ssh: The authenticity of host ‘hostname’ can’t be established
- Perform commands over ssh with Python
- ‘\r’: command not found – .bashrc / .bash_profile [duplicate]
- How can I check if a directory exists in a Bash shell script?
- Why do people write #!/usr/bin/env python on the first line of a Python script?
- OS X: equivalent of Linux’s wget
- subprocess.Popen(): OSError: [Errno 8] Exec format error in python?
- How to substitute shell variables in complex text files
- OS X: equivalent of Linux’s wget
- How can I recursively find all files in current and subfolders based on wildcard matching?
- ssh “permissions are too open” error
- ssh: The authenticity of host ‘hostname’ can’t be established
- Curl command for https ( SSL )
- How to exclude a directory in find . command
- “sed” command in bash
- How can I declare and use Boolean variables in a shell script?
- How to reload .bashrc settings without logging out and back in again?
- Using putty to scp from windows to Linux
- How to exclude a directory in find . command
- How can I declare and use Boolean variables in a shell script?
- How to reload .bash_profile from the command line?
- mysql_config not found when installing mysqldb python interface
- What is the purpose of “&&” in a shell command?
- Replace one substring for another string in shell script