Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

How to Ignore/disable SSH Host Key Verification

# SSH
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no  sarav@mwinventory.in

# SCP
scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no somefile.txt sarav@mwinventory.in:/var/tmp/
Comment

ssh ignore host key verification

In your ~/.ssh/config (if this file doesn't exist, just create it):

Host *
    StrictHostKeyChecking no
    
Rather than adding it to your ~/.ssh/config file for all Host *, it would be a safer to specify a particular host.
You can also pass a parameter on the command-line like this:

ssh -o StrictHostKeyChecking=no yourHardenedHost.com
Comment

PREVIOUS NEXT
Code Example
Shell :: hello world shell script 
Shell :: redisclient apt get 
Shell :: how to install scikit-learn 
Shell :: powershell upgrade 
Shell :: htaccess all requests goes to index.php 
Shell :: a script that runs a C file through the preprocessor and save the result into another file 
Shell :: abort git merge 
Shell :: kubectl completion zsh 
Shell :: how to change time zone in ubuntu 18.04 server 
Shell :: git push current project to master 
Shell :: E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? 
Shell :: clone a branch 
Shell :: show ip in docker 
Shell :: git revert uncommitted changes 
Shell :: install vs code in ubuntu 
Shell :: extract numners from string linux 
Shell :: unset git global config 
Shell :: conda create env from yml 
Shell :: ubuntu sudo no password 
Shell :: installing saas in react application 
Shell :: i forgot the wsl ubuntu root user password 
Shell :: powershell list usb devices 
Shell :: get folder size powershell 
Shell :: install system images sdkmanager 
Shell :: install ffmpeg ubuntu 
Shell :: how to convert ui to py pyside2 
Shell :: install chromedriver linux command line 
Shell :: git add commit push one command 
Shell :: git delete changes 
Shell :: check if mongodb is running mac 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =