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
Bitte markiere auch die Kommentare, die zur Lösung des Beitrags beigetragen haben
Content-ID: 274100
Url: https://administrator.de/contentid/274100
Ausgedruckt am: 24.11.2024 um 05:11 Uhr
5 Kommentare
Neuester Kommentar
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?