How to use Remote Command in the Cloud to Encrypt / Decrypt Directory or file?

Homepage Clovertech Forums Cloverleaf How to use Remote Command in the Cloud to Encrypt / Decrypt Directory or file?

  • Creator
    Topic
  • #121310
    Shawn X. Zhan
    Participant

    This is in regard to Infor Cloud docker containers using Remote Commands (no back end access), ask if anyone has ever used Remote Commands in the cloud to encrypt a directory or file? We tried: 

    /bin/bash -c “cd test/data/prd_data; gpg -e — passphrase mypasswd A08_test.txt”

    But we got:

    gpg:  cannot open ‘/dev/tty’ : No such device or address.

    Anyone can help? Appriciated!

    Shawn X Zhan

Viewing 2 reply threads
  • Author
    Replies
    • #121311
      David Barr
      Participant

      What happens if you try this?

       

      /bin/bash -c “cd test/data/prd_data; gpg -e –no-tty — passphrase mypasswd A08_test.txt”

      • This reply was modified 5 months, 1 week ago by David Barr.
    • #121314
      Shawn X. Zhan
      Participant

      This is what we got:

      [10:25 AM] Kathy Prentice-Learn

      ******************************
      Command Issued: /bin/bash -c “cd kpl_test1/data/_testdata/PROD_DATA;gpg -e -no-tty –passphrase mypassword A08_test.txt;ls -al”

       

      gpg: cannot open `/dev/tty’: No such device or address
      total 12
      drwxrwxrwx 2 hci staff 4096 Apr 10 18:03 .
      drwxrwxrwx 4 hci staff 4096 Apr 10 18:05 ..
      -rw-r–r– 1 hci staff 2727 Apr 10 18:03 A08_test.txt

      Shawn X Zhan

    • #121315
      Shawn X. Zhan
      Participant

      Command Issued:

      /bin/bash -c “cd kpl_test1/data/_testdata/PROD_DATA;gpg -e –no-tty –passphrase mypassword A08_test.txt;ls -al”

      We got:

      gpg: Sorry, no terminal at all requested – can’t get input

      Shawn X Zhan

Viewing 2 reply threads
  • You must be logged in to reply to this topic.

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,292
Replies
34,435
Topic Tags
286
Empty Topic Tags
10