Discussion:
ssh_keygen : command not found
(too old to reply)
Ansgar Burchardt
2014-11-16 17:10:02 UTC
Permalink
Hi,
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
-bash: ssh_keygen : command not found
Hmm, bash complaining about ssh_keygen (with an underscore) when you
want to start ssh-keygen (with a dash) sounds strange.

What do

which ssh-keygen
type ssh-keygen

say?

Ansgar
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@deep-thought.43-1.org
Reco
2014-11-16 17:10:02 UTC
Permalink
Hi.

On Sun, 16 Nov 2014 17:01:41 +0000
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
-bash: ssh_keygen : command not found
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
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@gmail.com
Lisi Reisz
2014-11-16 17:10:03 UTC
Permalink
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
-bash: ssh_keygen : command not found
Aptitude says that openssh-client, version 1:6.0p1-4+deb7 is installed
and, from its description, includes the ssh-keygen utility.
~/.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?
I can't think what else to try, and would be grateful for any
suggestions. (Don't hold back, I don't doubt I've done something
stupid :( )
I don't know, but guessing from what you say here - should you be running the
command ssh-keygen as root?

Lisi
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@gmail.com
Ron Leach
2014-11-16 17:20:02 UTC
Permalink
-bash: ssh_keygen : command not found
Idiot.

I've been typing ssh_keygen .

Apologies to the list. And thanks to Lisi and Ansgar.

Don't you ever only see it after it's too late.

Sorry, Ron
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@tesco.net
Loading...