ssh command is not recognized in shell when called by Run command via vba

0

I am mounting a macro that accesses the ec2 instance of AWS Amazon to run a python file. When I give the command at the Windows prompt, opening by run / cmd, the command below works. However, when I open Shell by the Run command, it says:

  

"ssh is not recognized as an internal or external command, a program   operable or a batch file ".

cmd = "ssh -i key.pem user@user"

CreateObject("WScript.Shell").Run("cmd /c " & cmd & " >" & tempFile, vbNormalFocus, True)

Is there a difference between the shell and the command prompt?

    
asked by anonymous 20.12.2018 / 12:34

0 answers