問題描述
正確的自動命令以在膩子中連接到路由器 (correct autocommand to connect to router in putty)
im trying to connect to the router using my putty in a shell with this line of commands
putty.exe -ssh <IP> p 22 -l <USERNAME> -pw <PASSWORD> -m C:COMMAND.txt
every time i run, it says "line has invalid autocommmand"
what is the correct command that COMMAND.txt that can takes me to the router?
參考解法
方法 1:
Either you have missed out the dash before the p
:
putty.exe -ssh <IP> -p 22 -l <USERNAME> -pw <PASSWORD> -m C:COMMAND.txt
Or (presuming that was a mistake in typing the command into StackOverflow) it may help us if you posted the contents of C:COMMAND.txt
. Try also using the full path to that file, instead of specifying the drive but not the path.
(by Wilbert Santos、dave4420)