Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some problems sending over the GELI key to the target #8

Open
Phorze opened this issue Mar 23, 2018 · 3 comments
Open

some problems sending over the GELI key to the target #8

Phorze opened this issue Mar 23, 2018 · 3 comments

Comments

@Phorze
Copy link

Phorze commented Mar 23, 2018

First of All, great guide, been waiting for something like this for an offsite backup.

When i try to push the geli key using the fifo key with your command it seems the contents of the key are literally interpreted on the receiving end. resulting somehow in the cat command never executing, but ending with an error like this:

user@host:~# ssh backup-knox-fifo < ~/.ssh/knox-geli-key & Pseudo-terminal will not be allocated because stdin is not a terminal. Warning: no access to tty (Bad file descriptor). Thus no job control in this shell. Unmatched '"'.
Any pointers on how to fix this? Thanks.

@hughobrien
Copy link
Owner

did you setup the backup-knox-fifo key to trigger the correct command?

force-command="mkfifo -m 600 /tmp/k; cat - > /tmp/k; rm -P /tmp/k"

The call to cat should trigger the command to read from stdin

@Phorze
Copy link
Author

Phorze commented Mar 26, 2018

Yes i did. will try to regen the keys as soon as i am able, to see if i made an error. Then i will report back

@Phorze
Copy link
Author

Phorze commented Mar 29, 2018

Regenerated the keys, but the same problem occurs.
When i replace the key contents with a simple string the following error comes back:
teststring: Command not found.

Might it be the wrong shell type on the knox side?

user@rpi:~ # echo $shell
/bin/csh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants