Skip to content

Error following instructions from ubuntu to setup ssh #180

@ericzundel

Description

@ericzundel

https://docs.sprites.dev/working-with-sprites/

My desktop is an Ubuntu linux mahcine. My sprite was created this morning.

First of all, I had to add '-s ' to many of the commands in the doc page above. Then I tried:

sprite exec mkdir -p .ssh
cat ~/.ssh/id_*.pub | sprite exec -s <myspritename> tee -a .ssh/authorized_keys

Output:

zundel@pardes01:/tmp/sprite-mount $ cat ~/.ssh/id_*.pub | sprite exec -s dailyspaceimage-dev-tmpl  tee -a .ssh/authorized_keys
Error: unknown shorthand flag: 'a' in -a

Usage: sprite exec [flags] <command> [args...]

It looks like 'sprite' is trying to consume the arguments on the command line intended to be passed to the remote machine? The 'tee -a' argument works for me both locally and remotely.

To workaround, I just copied over my authorized keys to ~/.ssh/authorized_keys on the sprite by hand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions