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 u...@server > > Sure wish there was a simpler way to do that, such as:
How about creating a stub script: d...@parakeet ~ $ cat bin/ssh-nh #!/bin/sh ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR "$@" d...@parakeet ~ $ Or an alias: d...@parakeet ~ $ alias | grep ssh alias ssh-nh='ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR "$@"'
