ssh "Host key verification failed"

Hallo!

OS OpenSUSE 11.2

Problem with connect on ssh:

slavaserver:/ # ssh -l slava 192.168.5.123
Could not create directory ‘/root/.ssh’.
ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): Permission denied
Host key verification failed.

Dir /root/.ssh not exist.
Command ssh-keygen -R 192.168.5.123 do nothing!!! >:(
Command ssh-keyscan 192.168.5.123 show key… :open_mouth:

In file /etc/ssh/ssh_config i’m write “StrictHostKeyChecking no” do nothing! >:(

My questions: Where i’m can find ssh key for host 192.168.5.123 and how i’m must delete it?

Thanks!

Do not try to log in to another PC via ssh as user root. Do so as a regular user. You can switch to root once logged in.

As a regular user take a look under /home/regularuser/.ssh

:wink:
i’m do this!
The same situation!!!

slava@slavaserver:~> rm -r .ssh
rm: cannot remove `.ssh’: No such file or directory
slava@slavaserver:~> ssh -l slava 192.168.5.123
Could not create directory ‘/home/slava/.ssh’.
ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): Permission denied
Host key verification failed.
slava@slavaserver:~>

Are you trying to remove a directory ? Or remove the file within the directory ? Or edit the file wihtin the directory?

Reads like the directory is already created, or the permissions are messed up.

Note one should as much as possible NOT login with root permissions, as it is very easy for users not familiar with a function to mess up permissions when running with root permissions.

file in directory be 0 size…
I’m try rename, edit… nothing…

i’m create directory and try

slava@slavaserver:~> mkdir .ssh
slava@slavaserver:~> ssh 192.168.5.123
ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): Permission denied
Host key verification failed.
slava@slavaserver:~>

Directory .ssh empty…

I’m add user “slava” in group “root”… nothing

slava@slavaserver:~> ssh-keygen -R 192.168.5.123
fopen: No such file or directory
slava@slavaserver:~> ssh-keyscan 192.168.5.123

192.168.5.123 SSH-2.0-OpenSSH_5.2

192.168.5.123 ssh-rsa AAAAB3Nza****************DpDEpguk=
slava@slavaserver:~>

i’m not understand where i’m can find this key “192.168.5.123 ssh-rsa AAAAB3Nza****”? :open_mouth:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Why cannot your user run /usr/lib/ssh/ssh-askpass? Check permissions on
there. This may not be as much key-related as it is a problem with files
in your filesystem. Have you changed the permissions on your system from
‘Easy’ to ‘Secure’ or ‘Paranoid’ or something? Post the output from:

ls -l /usr/lib/ssh/ssh-askpass #should be world-executable
rpm -V openssh-askpass
echo $?

I’m not sure where you’re going wrong but create a new user and try from
there. Post the output from:

sudo /usr/sbin/useradd -m ab
sudo echo ‘novell’ | passwd --stdin ab
su - ab
#enter the password of novell
ssh-keygen #press enter until completed, posting all output)
ssh-add #press enter when it asks you about your new key
#try to SSH again, still capturing output to post back here.

Good luck.

On 04/07/2010 02:16 AM, slovarik wrote:
>
> file in directory be 0 size…
> I’m try rename, edit… nothing…
>
> i’m create directory and try
>
> slava@slavaserver:~> mkdir .ssh
> slava@slavaserver:~> ssh 192.168.5.123
> ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): Permission denied
> Host key verification failed.
> slava@slavaserver:~>
>
> Directory .ssh empty…
>
>
> I’m add user “slava” in group “root”… nothing
>
>
> slava@slavaserver:~> ssh-keygen -R 192.168.5.123
> fopen: No such file or directory
> slava@slavaserver:~> ssh-keyscan 192.168.5.123
> # 192.168.5.123 SSH-2.0-OpenSSH_5.2
> 192.168.5.123 ssh-rsa AAAAB3Nza************DpDEpguk=
> slava@slavaserver:~>
>
> i’m not understand where i’m can find this key "192.168.5.123 ssh-rsa
> AAAAB3Nza
"? :open_mouth:
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJLvK9rAAoJEF+XTK08PnB58wwP/A6fI4RbpFnawRA6XQgTTboM
WrpbFke0ADnb7QyhHuthMMDV3GtbgpBFWPqBpXvK7DnA5Fd4Rxeyd+DLfeOEfkre
8UyzMfUIdON/pppxTLDCm9AgKh3J/jtk7Jn9bs3nuqmW02fu8mkU5gtYUV7MoEtU
POa0/i1qbhLfWEzVJZu9OVT6Ej8scMmk35Oy3UK6XXAhw/ZHQf23EUGX2wt4300P
vSt3QFK77kFd6pZSV9LnahNYO5setLEMjgOL0iVTlULFia9IXZf+ylJTID+EhNtV
4Iu9yuwg4nSFWAZNEcfBf1wdXBwNZ52BauC53Ra8V+RUqTQtZd4+n9y7Gx/b2VGO
aq9ZT98Sns8ghrVrgkpBfIt02/kQUPAp6eWVK7Ov5sjVg2ZMu2R7pdNsrPftw2nQ
uRgax4ifWhMmcrENNcXzZB43uu0iJuvpm7j4uqlI86xmvKBJmKS4hRVjcPqeel0n
g8f/v83S1M1nuDnY7vGgkOvYvZq7DOW+suu8tvXr0XA5eVvkUDRWB6asRrcemkF/
n1yq4hlo884F49g+SqCSJ7AKZ7/5dSZmiJwoORqW16bhvh6jGAKaB5pzNYN8ItsR
IbLgTj5X17d34j79KCCjRxrtSlkgbDMzemliwwEmHTZTcYgn5kPZRw5aCjQB2mXl
NTxQhtWYXIOJlhC+0fWS
=Ys/a
-----END PGP SIGNATURE-----

For ‘ab@novell.com’

permissions on system ‘Secure’. ‘Easy’ - it’s very easy… Server have real IP… :wink:

Reinstall ‘openssh-askpass’. Error ‘ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): Permission denied’ be delete…

Do like you write…
Created new user on server ‘slavatest’… nothing…

slavatest@slavaserver:~> ssh 192.168.5.123
Host key verification failed.
slavatest@slavaserver:~> ssh -l slava 192.168.5.123
Host key verification failed.
slavatest@slavaserver:~> ssh-keygen -R 192.168.5.123
fopen: No such file or directory
slavatest@slavaserver:~> ssh-keyscan 192.168.5.123

192.168.5.123 SSH-2.0-OpenSSH_5.2

192.168.5.123 ssh-rsa AAAAB3NzaC1yc*******OyIDpDEpguk=
slavatest@slavaserver:~>
:’(:’(:’(

Thanks!