Skip to content

[Question] SSH agent forwarding on one-off containers? #1222

@David-Guillot

Description

@David-Guillot

Hi there,

In the context of a one-off container, after installing the Scalingo CLI (following this example from the docs), in order to get something done with it, I need to perform

scalingo login

In order to achieve that easily, I'd like to be able to reuse my SSH agent. But for now I haven't been able to, and I'm not sure if it's because I missed something or because it's currently not supported.

What I did on my system:

  1. In ~/.ssh/config:

    Host *.scalingo.io
      ForwardAgent yes
    
    Host *.scalingo.com
      ForwardAgent yes
    
  2. Before launching scalingo run:

    ssh-add ~/.ssh/my_ssh_private_key
    

Yet when I get logged in my Scalingo one-off container (launched with scalingo run --app=myapp bash), after installing the Scalingo CLI, scalingo login refuses to log me in using SSH credentials.

Am I doing something wrong?

Thanks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions