Implement "get_hostname" in SSH client class

This method will retrieve the remote machine host name first
executing "hostname" command. If that command fails, it will try
to read "/etc/hostname" file.

Change-Id: I2e4de049d77858e5bf11b7d0758c9494099802f7
Closes-Bug: #1903982
3 files changed