I know how to use scp or wget to download a file on a remote server to my local machine. However, if I'm already logged into a server with ssh, is there a command that lets me download a file in the pwd on the server onto my local machine?
I suppose I can use scp, but my local machine is usually behind a router. Would I have to open a port in the router?
Best Answer
What you need to answer is why you don't want to log again ... if you logged once, you can log twice ... especially if you've taken the three minutes it takes to create a key and store the key remotely:
Back in the times before TCP/IP was commonplace, people used kludges such as X/Modem to handle this. Using this nowadays is kinda silly.