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

agent forwarding #15

Open
micsuka opened this issue Nov 12, 2020 · 1 comment
Open

agent forwarding #15

micsuka opened this issue Nov 12, 2020 · 1 comment

Comments

@micsuka
Copy link

micsuka commented Nov 12, 2020

first of all, tergent just works well for me, I use it with automatic key locking, thanks for it.

However, when I try to use agent forwarding with ssh -A ... from termux, it does not work. I couldn't find any pointer about this.
Sometimes it's needed to do an ssh from the server where I sshed. :)

thanks

@nomeata
Copy link

nomeata commented Mar 22, 2023

This seems to work, if use ssh-add:

  • Make sure that ssh-agent is running.

    ssh-agent > agent.env
    . agent_env
    
  • Add the key

    ssh-add -s $PREFIX/lib/libtergent.so
    

    It asked me for a PIN, but just the empty prompt was sufficient. Not sure if there is a way to avoid this.

  • Now

    ssh-add -l
    

    should list this key.

  • You can now use ssh -A, and continue on the other server, and it will require your fingerprint!

    You do not have to pass -I $PREFIX/lib/libtergent.so to ssh at this point.

These steps have to be repeated in a new session, but can probably be put in some startup script, maybe based on https://www.reddit.com/r/termux/comments/10bqclm/comment/j4kk377/?utm_source=reddit&utm_medium=web2x&context=3.

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