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?
-
Hi @gurdip-sira_1271 ,
Based on the error message, it looks like the use doesn't have appropriate permissions; did you set a
tempdirectory 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!
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