Uploaded image for project: 'Red Hat Container Development Kit'
  1. Red Hat Container Development Kit
  2. CDK-11

SSHFS mount fails on Windows when user has space in their name

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: vagrant-sshfs
    • Labels:
      None
    • Environment:

      Windows 10
      cdk 2.2.rc3

    • Workaround Description:
      Hide

      in components\rhel\rhel-ose\VagrantFile comment

        if Vagrant::Util::Platform.windows?
          target_path = ENV['USERPROFILE'].gsub(/\\/,'/').gsub(/[[:alpha:]]{1}:/){|s|'/' + s.downcase.sub(':', '')}
          config.vm.synced_folder ENV['USERPROFILE'], target_path, type: 'sshfs', sshfs_opts_append: '-o umask=000 -o uid=1000 -o gid=1000'
        else
          config.vm.synced_folder ENV['HOME'], ENV['HOME'], type: 'sshfs', sshfs_opts_append: '-o umask=000 -o uid=1000 -o gid=1000'
        end
      

      you loose functionality but the vm is launched

      Show
      in components\rhel\rhel-ose\VagrantFile comment if Vagrant::Util::Platform.windows? target_path = ENV['USERPROFILE'].gsub(/\\/,'/').gsub(/[[:alpha:]]{1}:/){|s|'/' + s.downcase.sub(':', '')} config.vm.synced_folder ENV['USERPROFILE'], target_path, type: 'sshfs', sshfs_opts_append: '-o umask=000 -o uid=1000 -o gid=1000' else config.vm.synced_folder ENV['HOME'], ENV['HOME'], type: 'sshfs', sshfs_opts_append: '-o umask=000 -o uid=1000 -o gid=1000' end you loose functionality but the vm is launched

      Description

      Trying to run cdk with a Windows user that has a space in the username ('Franta Zrobil' in this particular case) fails on sshfs mount:

      ==> default: Mounting SSHFS shared folder...
      ==> default: Mounting folder via SSHFS: C:/Users/Franta Zrobil => /c/Users/Franta
      ==> default: Checking Mount..
      ==> default: Checking Mount..
      ==> default: Checking Mount..
      ==> default: Checking Mount..
      ==> default: Checking Mount..
      ==> default: Checking Mount..
      ==> default: Checking Mount..
      Mounting SSHFS shared folder via slave SSHFS mount failed. Please
      look at the below STDERR output from the processes that were run.
      
      SSH command:
      
      Warning: Permanently added '[127.0.0.1]:2222' (ECDSA) to the list of known hosts.
      fuse: bad mount point `Zrobil': No such file or directory
      
      
      SFTP command:
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  jrichter1 Jan Richter
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: