{"record":{"id":"2f095435acee992c","repo":"hashicorp/vagrant","slug":"ssh-server-on-the-guest-doesn-t-support-scp-pleas","errorCode":null,"errorMessage":"SSH server on the guest doesn't support SCP. Please install the necessary\nsoftware to enable SCP on your guest operating system.","messagePattern":"SSH server on the guest doesn't support SCP\\. Please install the necessary\nsoftware to enable SCP on your guest operating system\\.","errorType":"exception","errorClass":"Vagrant::Errors::SCPUnavailable","httpStatus":null,"severity":"error","filePath":"plugins/communicators/ssh/communicator.rb","lineNumber":798,"sourceCode":"          @logger.debug(\"Exit status: #{exit_status.inspect}\")\n          raise Vagrant::Errors::SSHNoExitStatus\n        end\n\n        # Return the final exit status\n        return exit_status\n      end\n\n      # Opens an SCP connection and yields it so that you can download\n      # and upload files.\n      def scp_connect\n        # Connect to SCP and yield the SCP object\n        connect do |connection|\n          scp = Net::SCP.new(connection)\n          return yield scp\n        end\n      rescue Net::SCP::Error => e\n        # If we get the exit code of 127, then this means SCP is unavailable.\n        raise Vagrant::Errors::SCPUnavailable if e.message =~ /\\(127\\)/\n\n        # Otherwise, just raise the error up\n        raise\n      end\n\n      # This will test whether path is the Vagrant insecure private key.\n      #\n      # @param [String] path\n      def insecure_key?(path)\n        return false if !path\n        return false if !File.file?(path)\n        Dir.glob(Vagrant.source_root.join(\"keys\", \"vagrant.key.*\")).any? do |source_path|\n          File.read(path).chomp == File.read(source_path).chomp\n        end\n      end\n\n      def create_remote_directory(dir)\n        execute(\"mkdir -p \\\"#{dir}\\\"\")","sourceCodeStart":780,"sourceCodeEnd":816,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/plugins/communicators/ssh/communicator.rb#L780-L816","documentation":"Error \"SSH server on the guest doesn't support SCP. Please install the necessary\nsoftware to enable SCP on your guest operating system.\" thrown in hashicorp/vagrant.","triggerScenarios":"Thrown at plugins/communicators/ssh/communicator.rb:798 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5","analyzedAt":"2026-08-21T13:34:32.514Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}