Answer:
Transferring the file through ssh would keep it secure. There are many options; A few examples are listed below. Run 'man <program name>' for the full program manual.
sftp - secure file transfer program
$ sftp user@host:.bashrc ~/.
rsync - a fast, versatile, remote (and local) file-copying tool
$ rsync user@host:.bashrc ~/.
scp - secure copy (remote file copy program)
$ scp user@host:.bashrc ~/.