First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

Capturing Over SSH - Passing Options Through Plink

  • retag add tags

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?

tscott16's avatar
1
tscott16
asked 2019-10-23 21:08:22 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

plink can read in a command file:

  -m file   read remote command(s) from file

https://www.thegeekstuff.com/2017/05/...
4. Execute Multiple Linux Commands from a Windows File

Warning that it may not work with some devices:
https://www.ssh.com/ssh/putty/putty-m...

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.

Chuckc's avatar
3k
Chuckc
answered 2019-10-23 23:48:57 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer