I use the ssh-keyscan command to get the public keys in order to use the ssh and scp commands without warnings and errors. To generate a list of hosts I feed the IPv4 and IPv6 address and the hostname to a function to generate the command. To format these three values into the string with… Continue reading Format a string with content in Python
Category: Python
Parse JSON output from an API with Python
As great as PowerShell is with JSON objects you can’t always use it because it is not available on each and every machine with Linux out there. And I don’t know a way of parsing JSON code with plain bash properly. Fortunately a lot of servers come with “python” installed and it can be used… Continue reading Parse JSON output from an API with Python