ubuntu - SCP without asking "Continue or not" -


I'm trying to skip some files using different types of pm keys, so I do not want my password However, every time I am trying to connect to a new box, it will ask me "seriously, you want to connect? Do you want to save the key? ..." which is so disturbing, like in SCP Some flags "yum -y" yes for all those questions To give

  [user @ commander tmp] $ scp -i mykey.pem target.txt ubuntu@xxx.xx.xx.xx: / Authenticity of Commander Host 'xxx.xx.xx .xx (xxx.xx.xx.xx) 'can not be installed. RSA key is fingerprint junk: junk: junk ... lots of johns ... here goes do you really want to continue connecting (yes / no)? Yes Warning: 'xxx.xx.xx.xx' (RSA) has been added permanently in the list of known hosts.   

Thank you!

Yes, this is - A batch mode = yes is a direct candidate You can vary by StrictHostKeyChecking (it seems safe in the described circumstances) and UserKnownHostsFile . You can get more details on its manpage.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -