× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Re: Pro2 OS6 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

davidr1
Luminary

Pro2 OS6 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

Hi,

Pro2, OS6, Ubuntu

 

Not sure why (I may have disabled /re-enabled SSH?) but I received this warning today:

 

david@ubuntu-140402C:~$ ssh root@192.168.1.8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
15:61:82:a9:b6:15:72:fe:08:4e:9f:3d:1a:88:bc:b3.
Please contact your system administrator.
Add correct host key in /home/david/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/david/.ssh/known_hosts:1
remove with: ssh-keygen -f "/home/david/.ssh/known_hosts" -R 192.168.1.8
RSA host key for 192.168.1.8 has changed and you have requested strict checking.
Host key verification failed.
david@ubuntu-140402C:~$

 

For the Pro2 running OS6 would the procedure be:

  • ssh-keygen -f "/home/david/.ssh/known_hosts" -R 192.168.1.8    or
  • ssh-keygen -R ip.address.of.nas?

Or something else?

 

Many thanks,

David

Message 1 of 11

Accepted Solutions
mdgm-ntgr
NETGEAR Employee Retired

Re: Pro2 OS6 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

In the UI you must have had private home shares enabled. When you login via SMB for the first time as a user the home share for it is created.

View solution in original post

Message 6 of 11

All Replies
mdgm-ntgr
NETGEAR Employee Retired

Re: Pro2 OS6 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

If you have a dynamic I.P. it's also possible it's got an I.P. you've previously SSH'd into to a different device.

 

This issue can be encountered with any device you want to SSH into.


I would typically use the latter of those two commands you mentioned.

This warning is more important when logging in to remote sites. It's a security precaution to provide warning of a possible man-in-the-middle attack.

Message 2 of 11
davidr1
Luminary

Re: Pro2 OS6 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

Thanks mgdm.

 

ssh-keygen -R <ip.of.nas>

My password resulted in:

Permission denied, please try again.

 

nut the password still works in the browser.

 

I tried using 'password' as a long shot with the same result.

 

Any ideas please?

 

Best regards,

David

Message 3 of 11
mdgm-ntgr
NETGEAR Employee Retired

Re: Pro2 OS6 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

Try changing your password in the web admin interface of the NAS.

Message 4 of 11
davidr1
Luminary

Re: Pro2 OS6 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

Thanks for helping, mgdm.

 

OK, password accepted using ssh. Then ....

david@ubuntu-140402C:~$ ssh root@<ip>
david@192.168.1.8's password:
Creating directory '/home/david'.

Not sure why it did this?

 

Looking at home:

root@NASPro:/# cd home
root@NASPro:/home# ls -al
total 16
drwxr-xr-x 1 admin admin 10 Sep 25 13:15 .
drwxr-xr-x 1 root root 198 Sep 25 13:34 ..
drwx------ 1 david users 0 Oct 1 13:13 david

OK but rmdir david won't work as I can see I don't have full permission.

 

drwx------ 1 david users 0 Oct 1 13:13 david
root@NASPro:/home# rmdir david
rmdir: failed to remove `david': Operation not permitted

 

I am confused why directory david just created is poputated:

root@NASPro:/home# cd david
root@NASPro:/home/david# ls -al
total 0
drwx------ 1 david users 0 Oct 1 13:13 .
drwxr-xr-x 1 admin admin 10 Sep 25 13:15 ..

 

Can I get rid of home/david that was just created in and if so how? 'david' is my username, group 'users'

 

Many thanks,

David

 

 

Message 5 of 11
mdgm-ntgr
NETGEAR Employee Retired

Re: Pro2 OS6 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

In the UI you must have had private home shares enabled. When you login via SMB for the first time as a user the home share for it is created.

Message 6 of 11
davidr1
Luminary

Re: Pro2 OS6 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

home share

 

It looks like I did.

 

 

The shares I use were created in /data/. As this has just happened, how can I delete it?

thanks,

David

Message 7 of 11
davidr1
Luminary

Re: Pro2 OS6 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

sorry - picture didn't show.

home_share.png

Message 8 of 11
mdgm-ntgr
NETGEAR Employee Retired

Re: Pro2 OS6 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

You could disable the home folders and then the users would not be able to use them.

Message 9 of 11
davidr1
Luminary

Re: Pro2 OS6 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

Hi mgdm,

 

I appreciare your perseverence.

 

I did disable it. From your replies do I gather that only a complete reset would delete it as you have not suggested that there is an alternative way? If that is the case, even though it is a NASPro, presumably OS6 would not be deleted?

 

David

Message 10 of 11
davidr1
Luminary

Re: Pro2 OS6 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

Hi,

As the user's UID was different from all the other computers I deleted it and recreated it with the correct UID.

 

ssh'd into the Pro and the folder had been deleted from Home.

 

David

Message 11 of 11
Top Contributors
Discussion stats
  • 10 replies
  • 3098 views
  • 0 kudos
  • 2 in conversation
Announcements