Fixing bug with ssh and wrong host name

* bugfix: ssh uses keyname instead of host as host name