# Connecting to the Robot through SSH

**URL:** <https://forum.ubiquityrobotics.com/t/connecting-to-the-robot-through-ssh/57>\
**Category:** General Questions\
**Created:** [June 18, 2018, 9:42pm UTC](https://forum.ubiquityrobotics.com/t/connecting-to-the-robot-through-ssh/57 "2018-06-18T21:42:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![NnMm](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/n/c6cbf5/32.png) [@NnMm](https://forum.ubiquityrobotics.com/u/NnMm)\
**Post date:** [June 18, 2018, 9:42pm UTC](https://forum.ubiquityrobotics.com/t/connecting-to-the-robot-through-ssh/57/1 "2018-06-18T21:42:28Z")

</div>

I am currently trying to connect to the robot through SSH following the instructions on the Learn page. However, after trying both methods, I am not able to get past the option of saying yes to a similar error message as this

“ The authenticity of host ‘10.42.0.1 (10.42.0.1)’ can’t be established.  
ECDSA key fingerprint is SHA256:sDDeGZzL8FPY3kMmvhwjPC9wH+mGsAxJL/dNXpoYnsc.  
Are you sure you want to continue connecting (yes/no)?”

I can enter in the password for the Ubuntu user, but without running the ssh as a sudo instruction, I am not able to get past this error as I am being instructed to “contact your system user” on the VM interface. I tried running this as a sudo command, but it seems that the root password is different than that of the Ubuntu password. Does anyone have any suggestions for getting past this whether it be the password for the root user or some other known solution?

I tried to SSH into the ubuntu@ubiquityrobot.local and the system said it didn’t recognize that name or service. Therefore, my current approach is SSH-ing into 10.42.0.1.

Thanks again!

---

<div class="post-metadata">

**Author:** ![rohbotics](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/rohbotics/32/222_2.png) [@rohbotics](https://forum.ubiquityrobotics.com/u/rohbotics)\
**Post date:** [June 19, 2018, 6:14pm UTC](https://forum.ubiquityrobotics.com/t/connecting-to-the-robot-through-ssh/57/2 "2018-06-19T18:14:19Z")

</div>

Can you send some screenshots of the error when you try to ssh?

You shouldn’t have to run ssh as sudo ever, even if logging into another computer’s root.

What is the output of `ls -al ~/.ssh`?

PS: Run `sudo apt install avahi-daemon libnss-mdns` in your VM, and make sure that your networking config is in ‘Bridge Mode’ to get .local addressing working.

Thanks  
Rohan

---

<div class="post-metadata">

**Author:** ![NnMm](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/n/c6cbf5/32.png) [@NnMm](https://forum.ubiquityrobotics.com/u/NnMm)\
**Post date:** [June 20, 2018, 9:23pm UTC](https://forum.ubiquityrobotics.com/t/connecting-to-the-robot-through-ssh/57/3 "2018-06-20T21:23:27Z")

</div>

It seems that my network doesn’t allow .local (zero-config) so I had to find another way around, but I have been able to get in through SSH and also directly connecting to the Pi. Any suggestions for problems with Rviz? I can open another topic. I seem to be missing some of the Magni Files even though I’ve gone through all suggested updates and installed the ros-kinetic-magni-robot repo.

I’m specifically getting the error from Fixed Frame: “No tf data. Actual error: Fixed Frame [odom] (sometimes [map]) does not exist.”

---

<div class="post-metadata">

**Author:** ![stephenclark](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/s/c77e96/32.png) [@stephenclark](https://forum.ubiquityrobotics.com/u/stephenclark)\
**Post date:** [August 8, 2018, 1:30am UTC](https://forum.ubiquityrobotics.com/t/connecting-to-the-robot-through-ssh/57/4 "2018-08-08T01:30:41Z")

</div>

I get this weird error when trying to connect via ssh:

any thoughts on how to fix this?

ubuntu@ubuntu-VirtualBox:~$ ssh [ubuntu@10.42.0.1](mailto:ubuntu@10.42.0.1)  
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@  
@ 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 ECDSA key sent by the remote host is  
SHA256:erdeaAUcXgoriwuOA3wnsWQgTxFKxfv23pp1nHJmov4.  
Please contact your system administrator.  
Add correct host key in /home/ubuntu/.ssh/known\_hosts to get rid of this message.  
Offending ECDSA key in /home/ubuntu/.ssh/known\_hosts:3  
remove with:  
ssh-keygen -f “/home/ubuntu/.ssh/known\_hosts” -R 10.42.0.1  
ECDSA host key for 10.42.0.1 has changed and you have requested strict checking.  
Host key verification failed.  
ubuntu@ubuntu-VirtualBox:~$

---

<div class="post-metadata">

**Author:** ![NnMm](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/n/c6cbf5/32.png) [@NnMm](https://forum.ubiquityrobotics.com/u/NnMm)\
**Post date:** [August 8, 2018, 1:48am UTC](https://forum.ubiquityrobotics.com/t/connecting-to-the-robot-through-ssh/57/5 "2018-08-08T01:48:27Z")

</div>

So I ran into this same issue. What this error is saying is that you need to delete the third line of the file at /home/ubuntu/.ssh/known\_hosts as it’s not the right key. Once you do that, if you try to SSH again, you will be asked to enter yes or no about trusting the key and you should be good from there. Hope this helps! 🙂

---

<div class="post-metadata">

**Author:** ![stephenclark](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/s/c77e96/32.png) [@stephenclark](https://forum.ubiquityrobotics.com/u/stephenclark)\
**Post date:** [August 8, 2018, 1:51am UTC](https://forum.ubiquityrobotics.com/t/connecting-to-the-robot-through-ssh/57/6 "2018-08-08T01:51:08Z")

</div>

on the raspberry pi or the virtualbox vm?

---

<div class="post-metadata">

**Author:** ![rohbotics](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/rohbotics/32/222_2.png) [@rohbotics](https://forum.ubiquityrobotics.com/u/rohbotics)\
**Post date:** [August 8, 2018, 2:04am UTC](https://forum.ubiquityrobotics.com/t/connecting-to-the-robot-through-ssh/57/7 "2018-08-08T02:04:17Z")

</div>

Thanks for responding @NnMm

@stephenclark that would be the virtualbox vm.
