@sirgeefive hmm--the scp I'm invoking is on the linux machine tho. I'm wanting to push the file from linux -> win.
If I open a new command prompt, I can use windows' scp client to pull from linux into windows. But then I have to enter passwords & specify gnarly paths & whatnot. My feeling is I've already got an authenticated session going--why can't I just use that?
(I'm using the openssh install that comes standard w/windows these days, if that's important.)
@sirgeefive woah--trippy! So that sends the scp command to my windows host to do a pull from linux into windows?
@rpardee Yeah, it sends any command. In that example it was sending the scp command.
@rpardee I mean personally, I would flip the transaction and pull from the linux with the windows client. Having said that:
ssh user@remote_host -t "scp local_file remote_user@remote_host:/remote/path"
You can execute a remote command over the existing ssh session as above by using the -t flag. So, you could use your existing session to run scp.