# File lib/sshkit/host.rb, line 163 def hostname @host_string.gsub!(/\[|\]/, '') @host_string.split(':')[0..-2].join(':') end