You can add this host’s key to known_hosts beforehand like this:
ssh-keyscan $someip >> ~/.ssh/known_hosts
Related Contents:
- How can I ssh directly to a particular directory?
- How to run the sftp command with a password from Bash script?
- While loop stops reading after the first line in Bash
- What is the simplest way to remove a trailing slash from each parameter?
- Speed up rsync with Simultaneous/Concurrent File Transfers?
- How to delete empty source directories when moving folders with rsync?
- How do I iterate over a range of numbers defined by variables in Bash?
- How do I put an already-running process under nohup?
- How do I pause my shell script for a second before continuing?
- Command not found error in Bash variable assignment
- How to obtain the absolute path of a file via Shell (BASH/ZSH/SH)?
- How to get a password from a shell script without echoing
- How to check the exit status using an ‘if’ statement
- An example of how to use getopts in bash
- How to highlight bash/shell commands in markdown?
- Running multiple commands in one line in shell
- Capturing Groups From a Grep RegEx
- How to put a line comment for a multi-line command [duplicate]
- Can I export a variable to the environment from a Bash script without sourcing it?
- Why do you need ./ (dot-slash) before executable or script name to run it in bash?
- “unary operator expected” error in Bash if condition
- How do I run a shell script without using “sh” or “bash” commands?
- Command to get nth line of STDOUT
- Temporarily change current working directory in bash to run a command [duplicate]
- How do I fetch lines before/after the grep result in bash?
- Bash script to set up a temporary SSH tunnel
- Press alt + numeric in bash and you get (arg [numeric]) what is that?
- Batch renaming files with Bash
- How to get the last part of dirname in Bash
- envsubst: command not found on Mac OS X 10.8
- How can I make bash tab completion behave like vim tab completion and cycle through matching matches?
- How can I check in bash if a shell is running in interactive mode?
- How to enter ssh password using bash? [duplicate]
- How to store command results in a shell variable? [duplicate]
- SCP doesn’t work when echo in .bashrc?
- Shell script to capture Process ID and kill it if exist [duplicate]
- How to schedule to run first Sunday of every month
- How to suppress Terminated message after killing in bash?
- ZSH not recognizing my aliases?
- self-deleting shell script
- How to kill all subprocesses of shell?
- How to detect 386, amd64, arm, or arm64 OS architecture via shell/bash
- Detect if PATH has a specific directory entry in it
- Passing arguments by reference
- In a bash script, how do I sanitize user input?
- scp stalled while copying large files
- What does if [ $? -eq 0 ] mean for shell scripts? [duplicate]
- Is it necessary to specify traps other than EXIT?
- Extract version number from file in shell script
- How to remove filename prefix with a Posix shell