#!/bin/bash # mysftp--Makes sftp start up more like ftp. /bin/echo -n "User account: " read account if test -z $account { exit 0; # changed their mind, presumably } if test -z $1 { /bin/echo -n "Remote host: " read host if test -z $host { exit 0 } } else { setglobal host = $1 } # End by switching to sftp. The -C flag enables compression here. exec sftp -C $account@$host