

If it weren't for the need for sudo with ngrep, this wouldn't be a problem. scp is the ssh way to copy files to and from something running a ssh server.

This is for a demo so it has to be clear to the audience what is going on. The command will be: The putty equivalent to scp is pscp. Also, directly redirecting to a file > filename would mean the login process would all be redirected to the file and I wouldn't be able to see what was going on. Navigate to the directory cd /mnt/c/Users/test/ Review the file permissions for test1.zip ls -l Change permissions to read access for the. I would also confirm you can connect the server through SSH before transferring the file.
SSHFILE TO LOCAL WINDOWS PLUS
I'd see the output from the ngrep, PLUS the output from the test which would be confusing. You need at least read access to transfer the file. Also, when the test is running, I don't want to mix outputs which would happen if I used tee. I don't want all the login text getting put into the local file/pipe.īasically, I need to ngrep from a remote machine, and pipe the output to a local test script that checks the network traffic for certain things. The beauty of using SCP in file transferring, is that it does not only allow connection between local machines but also it allows for you to connect to remote servers. I have a similar requirement except I need to be able to "turn on" the output to local pipe/process after logging in and setting things up. Then, I specify the current directory as the local location to store the file by typing a dot.
