This discussion is archived
1 Reply Latest reply: Mar 11, 2013 7:54 AM by 422096 RSS

ssh "no hostkey alg" problem

422096 Newbie
Currently Being Moderated
Good morning,
I'm struggling with SSH configuration: I am using some tools that are launching the command "ssh <hostname> <command>", where the <hostname> is the hostname of the machine itself.
But when I launch "ssh <hostname>", I get the "no hostkey alg" error message.

For your information, I put here all information that might be needful (as far as I know), I am using a user "linus" whose home directory is "/osp/local/home/linus":
prjs065 linus> pwd
/osp/local/home
prjs065 linus> ls -ltra | grep linus
drwxr-x---   7 linus    in          1536 Mar 11 10:40 linus

prjs065 linus> pwd
/osp/local/home/linus
prjs065 linus> ls -ltra | grep ssh
drwx------   2 linus    in           512 Mar 11 11:10 .ssh

prjs065 linus> pwd
/osp/local/home/linus/.ssh
prjs065 linus> ls -ltra
total 26
-rw-r-----   1 linus    in          1453 Apr 12  2007 config
-rw-------   1 linus    in           883 Mar 11 10:37 id_rsa
-rw-r-----   1 linus    in           223 Mar 11 10:37 id_rsa.pub
drwxr-x---   7 linus    in          1536 Mar 11 10:40 ..
-rw-------   1 linus    in           668 Mar 11 11:02 id_dsa
-rw-r-----   1 linus    in           603 Mar 11 11:02 id_dsa.pub
-rw-------   1 linus    in           826 Mar 11 11:03 authorized_keys
-rw-rw----   1 linus    in           844 Mar 11 11:10 known_hosts
File contents:
prjs065 linus> cat id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAyfa5xKEIkcbGSu9gzz4sq1ybHbnMiAICbt0g9aa1xk6fL9Wnd+Lyu4Fpk1X1KGbzHC+LHSf2dnkUvdK2I7keA0rVNc+swwUXImqqBUkxLSMpcW6Lvkt/3YJHWBhtHzKr+IbgUvbaHI0y0beWV8m/L/9+sAehqSn09jGlJGK8/LE= linus@prjs065
prjs065 linus> cat id_dsa.pub
ssh-dss AAAAB3NzaC1kc3MAAACBAMxqjXcKWdfMfHGJmvC+YstqitSi3jbgiJlCZEsm+yQypgEu3Rtahb9Rkh19JEDGR83pEG98YG1rH1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
As far as the file "/etc/ssh/sshd_config" is concerned:
...
PermitRootLogin yes
...
HostKey /.ssh/id_dsa
HostKey /.ssh/identity
...
# Only v2 (recommended)
Protocol 2

# Both v1 and v2 (not recommended)
Protocol 2,1
...
For your information, the files id_rsa.pub, id_dsa.pub and authorized_keys have been created using UNIX commands, the file "known_hosts" has been created using copy/paste from other files (might contain a typo error).

Do you have an idea what might be the problem here?
Thanks
Dominique
  • 1. Re: ssh "no hostkey alg" problem
    422096 Newbie
    Currently Being Moderated
    Meanwhile I have found something more:
    It seems that the GSS-API error message is also displayed in case a "ssh" is working fine, but the difference between a working machine and mine is the following:

    Working machine:
    debug1: Failed to acquire GSS-API credentials for any mechanisms (No credentials were supplied, or the credentials were unavailable or inaccessible
    Unknown code 0
    )
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug1: kex: server->client aes128-ctr hmac-md5 none
    debug1: kex: client->server aes128-ctr hmac-md5 none
    debug1: Peer sent proposed langtags,...
    My machine:
    debug1: Failed to acquire GSS-API credentials for any mechanisms (No credentials were supplied, or the credentials were unavailable or inaccessible
    Unknown code 0
    )
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug1: kex: server->client aes128-ctr hmac-md5 none
    debug1: kex: client->server aes128-ctr hmac-md5 none
    no hostkey alg
    Does this ring any bell?
    Thanks
    Dominique

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points