Plink cant send yes?
i want to use plink for a batch ssh like this:
mac_auth_anschalten.cmd:
but it stops here:
http://i.imgur.com/sC8Dmrp.png
so how can i send "Y" to this ssh session?
Erik
plink -ssh -pw "xxxxx" admin@192.168.0.97 -m mac_auth_anschalten.cmd
mac_auth_anschalten.cmd:
_cmdline-mode on
Y
512900
system-view
mac-authentication
but it stops here:
http://i.imgur.com/sC8Dmrp.png
so how can i send "Y" to this ssh session?
Erik
Please also mark the comments that contributed to the solution of the article
Content-Key: 274100
Url: https://administrator.de/contentid/274100
Printed on: April 26, 2024 at 03:04 o'clock
5 Comments
Latest comment
Hello Erik,
have you already tried the plink-Switch -batch ?
Regards
jodel32
have you already tried the plink-Switch -batch ?
Regards
jodel32
Zitat von @q16marvin:
you mean like:
plink -ssh -pw "xxxx" admin@192.168.0.97 -m mac_auth_anschalten.cmd -batch ???
yesyou mean like:
plink -ssh -pw "xxxx" admin@192.168.0.97 -m mac_auth_anschalten.cmd -batch ???
the same, it stops by the question "Continue? [Y/N]"
hmm don't now any other solution for plink, yet. Is it not possible to permanently activate this setting in the switch, so you don't have to call it in the script?Have you tried to send the commands with Linux Tools (ssh) as an alternative?