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)



  • 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?


  • inedo-engineer

    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



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


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation