PowerShell / PowerShell/Win32-OpenSSH

debug1: Remote: Agent forwarding disabled: mkdtemp() failed: No such file or directory

Open
#1,462 3 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
8.3k
Forks
819
PR merge metrics
No merged PRs in 30d

Description

"OpenSSH for Windows" version
v8.0.0.0p1-Beta

Server OperatingSystem
Windows 10

What is failing
sshd is trying to create C:\tmp

debug1: Remote: Agent forwarding disabled: mkdtemp() failed: No such file or directory

Common scenario for ssh agent forwarding for connecting from linux to windows and then go on on anotherbox.

linux1 forward agent --> windows use agent --> linux2

workaround for mktemp

creating C:\tmp manually and the remote error disappears but agent forwarding still not working.

sshd tries to use unix sockets instead of named pipe.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is identified in the issue. Reproduce the Linux-to-Windows-to-Linux agent-forwarding scenario, then trace sshd's agent-forwarding temporary-directory and socket handling on Windows. Done means forwarding works without manually creating C:\tmp and uses a Windows-compatible named pipe rather than a Unix socket.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
networking, operating-systems, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.