fix getting user and host information for ssh commands from ssh_remote_command