Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Inedo.Agents.Ssh.SftpException: SFTP Protocol Error (permission denied) using SSH To Linux (otter)

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 6 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.
    • G Offline
      gurdip.sira_1271
      last edited by

      Hi,
      I have setup Otter on a Windows Server.

      I want to connect to a Linux agent and set a username/password but get the following error:

      Inedo.Agents.Ssh.SftpException: SFTP Protocol Error (permission denied)
      at Inedo.Agents.Ssh.Libssh2.Libssh2Session.HandleError(Int32 res, IntPtr sftp)
      at Inedo.Agents.Ssh.Libssh2.Libssh2Session.WithSocketAsync[T](Func1 run, Func2 getError, IntPtr sftp, CancellationToken cancellationToken)
      at Inedo.Agents.Ssh.Libssh2.Libssh2SftpChannel.CreateDirectoryAsync(String path, PosixFileMode mode)
      at Inedo.Agents.Ssh.Libssh2.Libssh2SftpChannel.CreateDirectoryAsync(String path, PosixFileMode mode)
      at Inedo.Agents.Ssh.Libssh2.Libssh2SftpChannel.CreateDirectoryAsync(String path, PosixFileMode mode)
      at Inedo.Agents.Ssh.Libssh2.Libssh2SftpChannel.CreateDirectoryAsync(String path, PosixFileMode mode)
      at Inedo.Agents.Hosting.ScriptableRemoteAgentHost.EnsureAgentBinariesAsync(Func1 getPackage, IEnumerable1 extensions, Func2 openExtension, Func1 updateStarted)
      at Inedo.Otter.Service.Agents.SshAgentConnection.GetRemoteHostAsync()
      at Inedo.Otter.Service.Agents.SshAgentConnection.EnsureHostedAgentAsync()
      at Inedo.Otter.Service.TaskRunners.ServerCheckerRunner.CheckSshAgentAsync(TaskRunnerSubtask`1 context, Servers_Extended server, SshAgent agent)

      Do I need to do anything on the Linux server side?

      atrippA 1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer @gurdip.sira_1271
        last edited by

        Hi @gurdip-sira_1271 ,

        Based on the error message, it looks like the use doesn't have appropriate permissions; did you set a temp directory on the SSH agent ? That directory may not exist , and user may not have permission to create it.

        Thanks,
        Alana

        1 Reply Last reply Reply Quote 0
        • G Offline
          gurdip.sira_1271
          last edited by

          Had to set ownership on the folder on the Linux server, all green now thanks!

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation