Re: ssh_keygen : command not found
Hi.
On Sun, 16 Nov 2014 17:01:41 +0000
Ron Leach <ronleach@tesco.net> wrote:
> I hesitate to trouble the list with this but, when trying to generate
> a key pair on a (lenny) system recently upgraded to wheezy, 7.7, I am
> seeing this:
>
> ron@d7server:~$ ssh-keygen
> -bash: ssh_keygen : command not found
> ron@d7server:~$
>
> Aptitude says that openssh-client, version 1:6.0p1-4+deb7 is installed
> and, from its description, includes the ssh-keygen utility.
Three possibilities:
1) There's a shell alias for ssh-keygen. Check it using 'alias' command.
2) There's a shell function called ssh-keygen. Check it using
'function-exists' if using bash.
3) There's an executable called ssh-keygen in your $PATH, but it's not
a real ssh-keygen. Check it using 'which ssh-keygen'.
> ~/.ssh exists, and does not contain a key pair. It does contain an
> authorized keys file.
>
> Openssh-server is installed and runs, allowing remote login via rsa key.
>
> Nothing in wiki suggests that ssh-keygen is not the correct command,
> nor do the man pages, in fact all the documents seem to suggest it
> should run.
>
> Maybe I could check it is actually present. Where does ssh-keygen
> live in the machine?
Try /usr/bin/ssh-keygen.
Consider developing a habit of using absolute paths to executables for
anything running as a root ;)
Reco
Reply to: