code: def ssh_session(key_filename,
                  username,
                  ip_address,
                  *cli):
      
      local('ssh -t -i %s %s@%s %s' % (key_filename,
                                       username,
                                       ip_address,
                                       "".join(chain.from_iterable(cli))))
docs: opens a ssh shell to the host