Skip to main content
3 of 3
added 89 characters in body
Max
  • 129
  • 1
  • 5

scp to Local Machine After SSHing

From my local machine I can copy files from a remote machine

scp remote:/some/file/path ~

But what if I'm already SSHed into the remote machine? Can I do something like this

ssh remote
cd /some/file
scp path local:~

where local somehow resolves to the machine I SSHed from. This would of course be possible if the local machine is running an SSH server and the remote is configured to connect to it, but that isn't always an option.

Is something like this possible?

Max
  • 129
  • 1
  • 5