Results 1 to 5 of 5
I wrote a Small BashScript that encrypts a Directory using tar and gpg.
It runs fine on LocalHost but if called over VNC -> SSH I get a problem.
The ...
- 01-11-2008 #1
Bash Script works, but fails duing SSH/VNC Session
I wrote a Small BashScript that encrypts a Directory using tar and gpg.
It runs fine on LocalHost but if called over VNC -> SSH I get a problem.
The Problem code is:
Anyhow, the Error I get is:Code:tar cf $1.tar $1 <-Here I make a tar file of the Directory gpg -c $1.tar <-Here I Encrypt the tar file
Can anyone tell me why that is? Why does it want to use /dev/tty? (It doesnt have that since its a OpenVZ box.Code:gpg: cannot open `/dev/tty': No such device or address
But then again, why should he have access to tty?
And why does it work on Localhost but not during a SSH session?
Thanks already.
- 01-11-2008 #2
Well I believe this happens because gpg uses the terminal as a source of entropy. There is a --no-tty option for gpg, but I've never actually had to use it, and from the manpage it looks like it may only be for output. It's worth trying out I'd say though
- 01-11-2008 #3
- 01-11-2008 #4
I did a test and found it prompts for a passphrase, cause you have to sign it with a key- i think -u is the option. Do gpg --list-keys to see which ones you've got.
- 01-14-2008 #5


Reply With Quote