Bad owner or permissions on /root/.ssh/config" while ssh cisco gns3 router from network automation container



After installing the network automation container and setting up the required ssh keys and username and password on the cisco devices. when i try to ssh to the device from the container the connection failed with the following error.
Bad owner or permissions on /root/.ssh/config but after changing the owner of the file ssh to the device worked. not sure why this problem is happening. 

<snip from the console>
====================
root@Automation-1:~/.ssh# ssh sam@192.168.100.1
Bad owner or permissions on /root/.ssh/config"

<<did a google search for the issue and changed the owner of the file as shown below then the issue is resolved>>

root@Automation-1:/etc# chown root ~/.ssh/config   >>> Solution
root@Automation-1:/etc# ssh sam@192.168.100.1
Password:
R1#



Comments