RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    SFTP ASCII Transfers Between RetroPie and Windows not working as expected

    Scheduled Pinned Locked Moved Help and Support
    sftpasciishellshell sc
    4 Posts 2 Posters 809 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • AlturisA
      Alturis
      last edited by

      I am trying to edit some .sh files in windows and upload them to my RPI 3 running an SFTP host and it appears that the server is not translating CR/LF to just LF on its end.

      I have tried using FileZilla as well as WinSCP and both are doing the same thing. Tried forcing it to be in ascii transfer mode and still the same result.

      I would assume that the SSH host would know that it is in linux/unix mode but test results are revealing otherwise.

      Has anyone else run into this issue? Did some forum searching and I havent found anything like this.

      RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

      1 Reply Last reply Reply Quote 0
      • AlturisA
        Alturis
        last edited by

        Actually, after further review, this appears to just be an issue with FileZilla. WinSCP does seem to work correctly. Which seems really odd since the conversion is not supposed to happen on the client end as far as I understand.

        RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

        mituM 1 Reply Last reply Reply Quote 0
        • mituM
          mitu Global Moderator @Alturis
          last edited by mitu

          @alturis SSH (SCP actually) does not translate the newlines, there is no ASCII mode (like in FTP), so if you're seeing this it's a client feature (FileZilla or WinSCP). Make sure the file has Unix (LF) line endings before transferring and you won't have any problems.

          EDIT: I recommend using Notepad++ and choosing Unix newlines as default line endings.

          AlturisA 1 Reply Last reply Reply Quote 0
          • AlturisA
            Alturis @mitu
            last edited by

            @mitu said in SFTP ASCII Transfers Between RetroPie and Windows not working as expected:

            I recommend using Notepad++ and choosing Unix newlines as default line endings.

            Will use Notepad++ from now on. Resolved that head-ache for me. Thanks.

            RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.