Add new files mistakenly omitted from previous patch.
Fix int vs size_t mismatch;
default TERM=xterm if not running as ssh;
prompt for pkeygen output file if omitted;
include pkeygen output file name in diagnostics.