How to retrieve files to local machine when logged in to SSH


I know that you can grab files with scp like this:

scp user@remote_machine:/path/to/source /path/to/destination

However, I'd like to know if there is an easier way to do this, when I'm already logged on in ssh on the remote machine – that is, to avoid specifying username, hostname and absolute path to source?

Best Answer

Maybe zssh?

zssh (Zmodem SSH) is a program for interactively transferring files to a remote machine while using the secure shell (ssh). It is intended to be a convenient alternative to scp , allowing to transfer files without having to open another session and re-authenticate oneself.

zssh is an interactive wrapper for ssh

It uses the venerable rz, sz implementations of zmodem file transfer.