darkoperator / darkoperator/Posh-SSH

"New-SFTPSession : The server response does not contain an SSH identification string."

Open
#514 2 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

In code that has been working perfectly for a while, New-SFTPSession has begun returning
"New-SFTPSession : The server response does not contain an SSH identification string."
I know that the target server has changed their certificate, but -AcceptKey ought to permit that. I can successfully connect using FileZilla and the SFTP protocol.
What might be going on?

#setup
$PWord = ConvertTo-SecureString -String $password -AsPlainText -Force #turn the password into a secure string
$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $User, $PWord #use userid and secure string password to create credentials
$session =New-SFTPSession -AcceptKey -ComputerName $secureserver -Port $secureport -Credential $Credential #connect to FTP server

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

Start by reproducing the supplied New-SFTPSession command against the affected server, comparing the server's SSH identification response with the certificate change and the successful FileZilla connection. Trace New-SFTPSession's connection and host-key handling to determine whether the failure occurs before -AcceptKey is applied; done means identifying a reproducible cause and the appropriate fix or diagnostic guidance.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
networking
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.