VOLTTRON / volttron

VOLTTRON Distributed Control System Platform
https://volttron.readthedocs.io/
Other
461 stars 218 forks source link

If the key starts with a hyphen ('-') #1196

Open so3500 opened 7 years ago

so3500 commented 7 years ago

Thank you for creating a great open source called volttron.

Currently I am testing on version 4.0.1 of volttron.

Http://volttron.readthedocs.io/en/master/core_services/security/Known-Hosts-File.html?highlight=known-host According to the link, "The known-hosts file should not be edited directly." . However, there was a situation where you had to change the file directly.

volttron-ctl auth add-known-host --host <host ip: port> --serverkey <serverkey>   The command is not executed for instances where you want to perform a command but the starts with '-'.

113

  1. This is the case when problem 1 occurs first.
  2. The second was wrapped in "".
  3. Third, I changed the initial hyphen to another regular character,

Are you aware of this problem?

craig8 commented 7 years ago

Thank you for posting this. I can't believe that we haven't run across this before. I think if you - it that would make it work the way it "should" would you let me know if that works?

Thanks

so3500 commented 7 years ago

Would I try again with the key that starts with -?

craig8 commented 4 years ago

2371