#!/bin/bash # SSH "wizard" script. Copies the public key and installs terminfo for first # time use of a host. if [ -z "$1" ]; then echo "usage: sshwiz " exit 1 fi target=$1 ssh-copy-id $target echo "installing terminfo..." infocmp $TERM > /tmp/$TERM.terminfo rsync /tmp/$TERM.terminfo ${target}: ssh $target "tic -x $TERM.terminfo" echo "done"