I may have missed something in the man pages, release notes, and errata, but I did read them.
I would like to run ssh-add when I login in. Where would you recommend I do it?
I have good news and bad news.
The good news : KDE, and Mageia 6 starts ssh-agent for me, by itself, automatically.
Two of the three environment variables set for ssh are correct.
Also, the command ssh-add works fine.
The bad news : The third environment variable, SSH_ASKPASS, is wrong. The details are listed below.
I know where it is set. What do you recommend I set it to?
Also, Where, and when are these environment variables set?
DETAILS:
After logging in my ssh related environment variables look like the following:
- Code: Select all
[hank@HIvyTower ~]$ env | grep -i ssh
SSH_AGENT_PID=3003
SSH_AUTH_SOCK=/tmp/ssh-pd92Mo6EpoPL/agent.3002
SSH_ASKPASS=/usr/libexec/openssh/ssh-askpass
[hank@HIvyTower ~]$
The socket /tmp/ssh-pd92Mo6EpoPL/agent.3002 is only readable and writeable by myself.
- Code: Select all
[hank@HIvyTower ~]$ ls -ald ${SSH_AUTH_SOCK}
srw------- 1 hank hank 0 Aug 19 13:33 /tmp/ssh-pd92Mo6EpoPL/agent.3002=
The PID 3003 is up and running.
- Code: Select all
[hank@HIvyTower ~]$ ps -ef | grep 3003
hank 3003 1 0 13:33 ? 00:00:00 /usr/bin/ssh-agent -s
hank 8375 5653 0 23:45 pts/2 00:00:00 grep --color 3003
[hank@HIvyTower ~]$ ps -ef | grep 300[23]
hank 3003 1 0 13:33 ? 00:00:00 /usr/bin/ssh-agent -s
*** The PID and the socket are good.
The executable for ${SSH_ASKPASS} does not exist.
- Code: Select all
[hank@HIvyTower ~]$ ls -ald ${SSH_ASKPASS}
ls: cannot access '/usr/libexec/openssh/ssh-askpass': No such file or directory
[hank@HIvyTower ~]$ ls -ld /usr/libexec/openssh/ssh-askpass
ls: cannot access '/usr/libexec/openssh/ssh-askpass': No such file or directory
[hank@HIvyTower ~]$ cat /etc/profile.d/90ssh-askpass.sh
export SSH_ASKPASS=/usr/libexec/openssh/ssh-askpass
[hank@HIvyTower ~]$ cat /etc/profile.d/90ssh-askpass.csh
setenv SSH_ASKPASS /usr/libexec/openssh/ssh-askpass
[hank@HIvyTower ~]$
Here are all of the ssh-askpass like files on my Mageia 6 system:
- Code: Select all
[hank@HIvyTower ~]$ sudo find / -name "*ssh*askpass*" -exec ls -ld {} \; 2>/dev/null | grep -v locale
-rw-r--r-- 1 root root 52 Apr 2 09:26 /etc/profile.d/90ssh-askpass.sh
-rw-r--r-- 1 root root 52 Apr 2 09:26 /etc/profile.d/90ssh-askpass.csh
lrwxrwxrwx 1 root root 20 Jul 12 2015 /etc/alternatives/ssh-askpass -> /usr/bin/ksshaskpass
lrwxrwxrwx 1 root root 20 Aug 18 18:57 /etc/alternatives/bssh-askpass -> /usr/bin/ksshaskpass
-rw-r--r-- 1 root root 51 Aug 18 18:57 /var/lib/rpm/alternatives/bssh-askpass
-rw-r--r-- 1 root root 58 Jul 12 2015 /var/lib/rpm/alternatives/ssh-askpass
lrwxrwxrwx 1 root root 29 Aug 9 2014 /usr/lib64/ssh/ssh-askpass -> /etc/alternatives/ssh-askpass
-rwxr-xr-x 1 root root 20016 May 26 12:06 /usr/bin/ksshaskpass
lrwxrwxrwx 1 root root 30 Aug 18 18:57 /usr/bin/ssh-askpass -> /etc/alternatives/bssh-askpass
-rwxr-xr-x 1 root root 2530992 Dec 18 2016 /usr/bin/qt4-ssh-askpass
-rw-r--r-- 1 root root 1020 May 26 12:06 /usr/share/man/man1/ksshaskpass.1.xz
[hank@HIvyTower ~]$