darkoperator / darkoperator/Posh-SSH

New-SFTPSession : Socket read operation has timed out after 30000 milliseconds.

Open
#470 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
1.1k
Forks
222
PR merge metrics
No merged PRs in 30d

Description

Hello,

Lately i'm getting errors when using New-SFTPsession .

My code:
$ThisSession = New-SFTPSession -ComputerName $SftpIp -Credential $Credential -AcceptKey:$true -Force -ConnectionTimeout 200 -OperationTimeout 200

The error that i'm getting this time and can't seem to figure it out is :
"New-SFTPSession : Socket read operation has timed out after 200000 milliseconds".

I have tried the -Force option and setting the timeout to 200. I also checked if my Azure server/connection and this workes fine.

Really could use some help with this, thanks.

Contributor guide

No contributing guide indexed for this repository

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

Begin at the New-SFTPSession entry point and reproduce the issue with the shown -ConnectionTimeout 200 and -OperationTimeout 200 values. Compare the reported 200000-millisecond socket-read timeout with the working Azure connection; done means identifying the cause and verifying a correction.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.