Closed a101755 closed 1 year ago
Did you correctly set the SSH_AUTH_SOCK
environment variable before using ssh?
Hi, i think that may be the failure. printenv | grep SSH shows nothing. I will look for How to set SSH_AUTH_SOCK and post it here.
Sincerely yours a101755
another indication, that SSH_AUTH_SOCK is not present, is the following answer: ssh-add -l Could not open a connection to your authentication agent.
It is definitivly something wrong in my environment with ssh and ssh-agent and the environment variable SSH_AUTH_SOCK.
Why this? If i start Ubuntu-Linux, additional a shell in my graphical desktop and type in this shell
ps ax | grep ssh 1031 ? Ss 0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups 2363 ? Ss 0:00 /usr/bin/ssh-agent -s 3510 pts/0 S+ 0:00 grep --color=auto ssh
further env | grep SSH has no output.
After typing
eval ssh-agent
// manual start of the ssh-agent
and env | grep SSH // the output is _SSH_AUTH_SOCK=/tmp/ssh-XXXXXXhjbGUf/agent.3868 SSH_AGENTPID=3869
At last i start KeePass2 in the "background" with following & keepass2 & [1] 3910
The final step is
ssh
The open task is to configure ssh in that way, so SSH_AUTH_SOCK is set system-wide. The variable above is only visible in the shell.
But this is another story.
So i will close this issue with many thanks to David. His hint was crucial!!
Please look at this thread. Environment variable SSH_AUTH_SOCK isn't set. I hope someone can help me.
Hello, i'm trying to log in to my server using ecdsa-keys, but have still to type my password. So i think KeeAgent will not work as a ssh-agent on my local machine. rsa-Keys does not function also.
Basics
OS: lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS Release: 22.04 Codename: jammy
openssl sudo apt list | grep openssl ... openssl/jammy-updates,jammy-security,now 3.0.2-0ubuntu1.6 amd64 [installiert] ...
KeePass2 keepass2 --version KeePass 2.47 Copyright © 2003-2021 Dominik Reichl
KeyAgent![grafik](https://user-images.githubusercontent.com/77068640/199078155-99d3c344-5e82-49ab-8e39-4997aa120c07.png)
Mono mono -V Mono JIT compiler version 6.12.0.182 (tarball Tue Jun 14 22:35:00 UTC 2022) Copyright (C) 2002-2014 Novell, Inc, Xamari ...
KeePass2-Entry
Generating Keys ssh-keygen -f ./.ssh/test_ecdsa -t ecdsa -b 521 Generating public/private ecdsa key pair. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in ./.ssh/test_ecdsa Your public key has been saved in ./.ssh/test_ecdsa.pub The key fingerprint is: SHA256:ecOQEfM1piy1ZHykqVPBo2VYlpuDktH+7Q29D9kSU8o a101755@holoHorizon The key's randomart image is: +---[ECDSA 521]---+ | .+*Bo= | | . o@BO.. | | ++=O= .| | o +B+ . o | | .S.+o .E | | o..o .= | | . o+..| | . oo | | ..| +----[SHA256]-----+
KeePass2-Entry
![grafik](https://user-images.githubusercontent.com/77068640/199090460-71a16016-73cf-4808-8507-a1747f40617e.png)
Please let me know, if you need further information.
Sincerely yours a101755