ssh-find-agent | Tool to find already running ssh-agent compatible agents | SSH Utils library
kandi X-RAY | ssh-find-agent Summary
kandi X-RAY | ssh-find-agent Summary
Tool to find already running ssh-agent compatible agents
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ssh-find-agent
ssh-find-agent Key Features
ssh-find-agent Examples and Code Snippets
Community Discussions
Trending Discussions on ssh-find-agent
QUESTION
I want to deploy an app from my Mac to my ubutun 18.04 server. The problem is that when i go to my server and do a simple command like ssh -T git@bitbucket.org all work fine. It doesn't ask my passphrase etc... But when I run the command
...ANSWER
Answered 2020-Aug-15 at 22:43I try to use this solution to use a user-agent already running : https://github.com/wwalker/ssh-find-agent but it doesn't work.
If, as documented, you tried to use . ssh-find-agent.sh
in ~/.bashrc
or ~./.zshrc
, that would not work.
The core of your issue (ssh inside ssh) is that the [ssh session would read:
~/.bash_profile
in an interactive session (not.bashrc
)- nothing in a non interactive session (
ssh user@server 'a command'
)
You should at least source your .bash
(rc
or _profile
) to trigger the . ssh-find-agent.sh
and see if it finds your ssh agent (already running, for which the passphrase was already entered)
If you have to enter a passphrase, you might need expect
as shown at the end of this answer.
The OP jean-max confirms in the comments that sourcing the .profile
(not .bash_profile
) is enough to make the . ssh-find-agent.sh
work.
chepner mentions in the comments the ssh -J
"jump host" option, here a dynamic one:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ssh-find-agent
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page