q16marvin
Goto Top

Plink cant send yes?

i want to use plink for a batch ssh like this:


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

Content-ID: 274100

Url: https://administrator.de/contentid/274100

Ausgedruckt am: 24.11.2024 um 05:11 Uhr

114757
114757 09.06.2015 aktualisiert um 12:14:46 Uhr
Goto Top
Hello Erik,
have you already tried the plink-Switch -batch ?

Regards
jodel32
q16marvin
q16marvin 09.06.2015 um 12:18:38 Uhr
Goto Top
you 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]"
114757
114757 09.06.2015 aktualisiert um 12:28:03 Uhr
Goto Top
Zitat von @q16marvin:
you mean like:
plink -ssh -pw "xxxx" admin@192.168.0.97 -m mac_auth_anschalten.cmd -batch ???
yes
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?
q16marvin
q16marvin 09.06.2015 um 13:44:18 Uhr
Goto Top
mhh i have only windows clients, it seems that generaly only first line in this commands file will be executed, but i dont know why ...
114757
Lösung 114757 09.06.2015, aktualisiert am 11.06.2015 um 08:59:56 Uhr
Goto Top