Ask Your Question

Capturing Over SSH - Passing Options Through Plink

asked 2019-10-23 21:08:22 +0000

tscott16 gravatar image

I'm trying to capture over SSH from a Sophos gateway. tcpdump is installed and functions fine but whenever you SSH into the device, you first have to navigate a couple of menu selections to get to the CLI prompt (press 5 for device management and then press 3 for "advanced shell").

Is there any way to pass these menu selections automatically with Plink?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2019-10-23 23:48:57 +0000

Chuckc gravatar image

plink can read in a command file:

  -m file   read remote command(s) from file
4. Execute Multiple Linux Commands from a Windows File

Warning that it may not work with some devices:

With some servers (particularly Unix systems), you can even put multiple lines in this file and execute more than one command in sequence, or a whole shell script; but this is arguably an abuse, and cannot be expected to work on all servers. In particular, it is known not to work with certain ‘embedded’ servers, such as Cisco routers.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-10-23 21:08:22 +0000

Seen: 70 times

Last updated: Oct 23 '19