Jump to content

ETN

Member
  • Posts

    8
  • Joined

  • Last visited

Posts posted by ETN

  1. 2 minutes ago, deanishe said:

    Always the same commands?

    Yes. Once I have ssh'ed in,  it will be the same commands.

     

    4 minutes ago, deanishe said:

    Which of the steps you describe cannot be fully automated because they're actually different each time

    The 1st step (ssh into the remote gateway server).  The one-time password changes for each login, and can only be generated by external hardware.  So it has to be a variable that I need to input each time I initiate the workflow.

  2. 1 hour ago, deanishe said:

    What exactly are you trying to achieve?

    I was trying to automate the following process:

    - Open Terminal and ssh to a remote gateway server using a one-time Password (passed in by user as an argument of workflow)

    - once I manage to ssh to the remove server, i would like to execute one or two terminal commands

    - exit and close the Terminal app.

     

    The challenge here is the gateway server uses one-time password that I have to generate externally from token. And gateway does not allow password-less login. I think these two points make scripting a bit more challenging. So I am wondering if workflow can automate the process the same way as human does.

     

     

  3. Hi,

     

    Thanks for the tips. I am new to workflow. I was not actually using any scripts for my ssh. My workflow opens the Terminal.app and I assume that was the interactive session?

    I am not sure what you meant by "exit with an error". I just notice my Terminal shows "Password:" and just wait for user to input password instead of using the arguments from my workflow. It seems that the workflow kind of stops when it sees "Password:" in the terminal?

     

  4. Hi,

     

    I am trying to create a work flow that starts with keyword with argument with attempting to pass the user-input argument as a one-time password to a remote ssh server.

    (The remote ssh server does not accept ssh-key setup, OTP is the only option there :( )

     

    But some how I never managed to succeed. 

     

    I am wondering if someone knows how to do this or is this possible at all?

     

    Thanks! :)  

×
×
  • Create New...