rapidloop / rtop-bot

A Bot for Remote Server Monitoring over SSH
http://www.rtop-monitor.org/rtop-bot/
MIT License
171 stars 20 forks source link

Does not pick up ssh-keys #7

Open linbynd opened 8 years ago

linbynd commented 8 years ago

The bot does not pick up other key names in different directories, apart from id_rsa.

./rtop-bot -s xoxb-33505060097-BwtQ5qksmUKAqZQOyEpD3zrW                                                                                                            
rtop-bot: bot [rtopper] ready
rtop-bot: hit ^C to exit
rtop-bot: open "/Users/vinitkhandagle/Documents/personal/vagrant_machines/.vagrant/machines/mesos-master-server/virtualbox/private_key": no such file or directory

where as the file is present and the config is as following and I can ssh with to the box as well

Host mesos-master-server
  HostName 127.0.0.1
  User vagrant
  Port 2222
  UserKnownHostsFile /dev/null
  StrictHostKeyChecking no
  PasswordAuthentication no
  IdentityFile "/Users/vinitkhandagle/Documents/personal/vagrant_machines/.vagrant/machines/mesos-master-server/virtualbox/private_key"
  IdentitiesOnly yes
  LogLevel FATAL
mdevan commented 8 years ago

The path to the key was picked up, but it was unable to open the file. Maybe the file was deleted (but was loaded into ssh-agent before deletion)?

linbynd commented 8 years ago

The file is present, and ssh agent is not running. Also I see the same issue with rtop. does rtop honor ssh config file? coz it only works if we specify the keys and it does not read the ssh config file..