Re: Alternative to -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ?



there's not a ssh_config used by the client to do that ?



On Sat, Mar 21, 2009 at 5:32 PM, Dan Wallis <mrdanwallis@xxxxxxxxx> wrote:
Peter Valdemar Mørch (Lists) wrote:
So now, to disable host keys without getting warnings, I need to:

ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o
LogLevel=ERROR user@server

Sure wish there was a simpler way to do that, such as:

How about creating a stub script:

dan@parakeet ~ $ cat bin/ssh-nh
#!/bin/sh
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o
LogLevel=ERROR "$@"
dan@parakeet ~ $


Or an alias:

dan@parakeet ~ $ alias | grep ssh
alias ssh-nh='ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o
LogLevel=ERROR "$@"'