xxh / xxh-shell-xonsh

Use xonsh wherever you go through the SSH without installation on the host.
BSD 2-Clause "Simplified" License
46 stars 8 forks source link

xonsh appimage is an html string #14

Closed jasoncyu closed 4 years ago

jasoncyu commented 4 years ago

Local OS (where xxh is installed): MacOS 10.14.6 Destination host OS: CentOS 7 xxh version: ❯ xxh --version xxh-xxh/0.4.4

xxh-plugins installed: None

Steps to Reproduce

  1. I run xxh etld, etld is the name of the host I want to xxh into
  2. The output log:
    
    ❯ xxh etld
    etld:/home/jasony/.xxh not found. Install xxh? [Y/n] y
    Install xxh to etld:/home/jasony/.xxh
    Upload using rsync
            457 100%    0.00kB/s    0:00:00 (xfr#1, to-chk=0/1)
          3,230 100%   28.08kB/s    0:00:00 (xfr#3, to-chk=0/4)
    First run xonsh on etld
    ./xonsh: line 1: syntax error near unexpected token `<'
    ./xonsh: line 1: `<html><body>You are being <a href="https://github-production-release-asset-2e65be.s3.amazonaws.com/190451180/24306380-60cb-11ea-908f-3bc05f834509?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200309%2Fus-east-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20200309T173439Z&amp;X-Amz-Expires=300&amp;X-Amz-Signature=b350321fae301bc2c57d1c3851e6321a7522bc4738e4237b8e04319afc0e5e8f&amp;X-Amz-SignedHeaders=host&amp;actor_id=0&amp;response-content-disposition=attachment%3B%20filename%3Dxonsh-x86_64.AppImage&amp;response-content-type=application%2Foctet-stream">redirected</a>.</body></html>'

3. What is the problem

Looks like the contents of the `xonsh` script on the remote host I'm trying to ssh into. And the installation fails when that script is trying to be run.
**For community:**
⬇️  **Please click the 👍 reaction instead of leaving a `+1` or 👍  comment**
anki-code commented 4 years ago

Hi @jasoncyu! Thank you for the report! The problem is curl not follow redirect and save the redirect page. I've fixed this right now. Please update your shell on local and try again with +if (reinstall):

cd ~/.xxh/xxh/shells/
rm -rf xxh-shell-xonsh-appimage
git clone https://github.com/xxh/xxh-shell-xonsh-appimage
./xxh-shell-xonsh-appimage/build.xsh
xxh etld +if
jasoncyu commented 4 years ago

Nice, trying again the issue is now fixed. Thanks!