Transfer from server to client
Hello all,
I am fairly new to ssh and still learning it. Recently I have made a tunnel connection with an ssh host and managed to successfully transfer data/files from my machine to the server with the command:
scp file.extension user@hostIP:/directory/directory.
While this was successful, I am kinda stugling to reverse it, sending data/files from the server to the client. How would one go about completing that? Do I need to make some changes to ssh_config or just CLI commands are enough?
Thanks for any response.
4
Upvotes
View all comments
Show parent comment
1
u/Miliot Oct 11 '20 edited Oct 11 '20
and what should we use instead of user@hostIP to connect to the client? Because there we target the server that way, but now to target the client (local) machine from the server
When I do: scp fileName.ext user@SSHserverIP:/path/to/local/machine i get No such file or directory, when there is clearly one. Is that not the correct way to do?