リモートログイン後に、scpコマンドを使う。
example.netにusernameでログインし、/home/usernameを./homeにダウンロードする。
scp -r username@example.net:/home/username ./home
example.netのポート12022にusernameでログインし、ローカルのsample.txtをリモートに転送する。
scp -P 12022 sample.txt username@example.net:/home/user/sample.txt