Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there any chance to skip the known_hosts check without clearing known_hosts or disable in ssh.conf? I neither have access to known_hosts nor ssh.conf yet. Don't find any suitable in man.

share|improve this question
    
what does "I neither have access to known_hosts nor ssh.conf yet. Don't find any suitable in man." mean? The known_hosts file is created once you have connected, so all should be fine. –  glglgl Nov 13 '11 at 12:36
    
Hi glglgl, that known_hosts is a file from another service user and visudo is not working correctly. So I have no writeable access to known_hosts nor ssh.conf. There is a false signature within that known_hosts file. –  burnersk Nov 15 '11 at 8:36

1 Answer 1

up vote 8 down vote accepted

scp is supposed to take the same command line options as ssh, try: "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null", maybe add -q to disable the warnings as well.

share|improve this answer
    
Thanks, arjarj. it worked out. –  burnersk Nov 13 '11 at 9:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.