I transfer files using this command
scp <localfile> user@host:<destination>
The above command only works when I'm not ssh'd into the server.
How do I transfer local files to the host machine when I'm already ssh'd in??
I ssh in using ssh user@hostname
Best Answer
Nice question.
scp
again, but the opposite way. I did it and here it is:edited to add: as pointed out in the comments, this requires that the remote computer can access the local computer. And sshd or (openssh-server) needs to be installed and running on the local machine.